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