uri handling

This commit is contained in:
Jeremy Kauffman 2017-05-21 15:41:26 -04:00
parent 4f7e7c6922
commit 20a4f20562

View file

@ -11,6 +11,7 @@ import { Provider } from 'react-redux';
import store from 'store.js';
import {
doChangePath,
doNavigate,
doDaemonReady,
doHistoryPush
} from 'actions/app'
@ -47,11 +48,8 @@ window.addEventListener('popstate', (event, param) => {
})
ipcRenderer.on('open-uri-requested', (event, uri) => {
console.log('open uri')
console.log(event)
console.log(uri)
if (uri) {
console.log('FIX ME do magic dispatch: ' + uri);
if (uri && uri.startsWith('lbry://')) {
doNavigate('/show', { uri })
}
});