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 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);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue