uri handling
This commit is contained in:
parent
4f7e7c6922
commit
20a4f20562
1 changed files with 3 additions and 5 deletions
|
@ -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 })
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue