From 20a4f20562385d0fa1f47919463d88f74d45e015 Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Sun, 21 May 2017 15:41:26 -0400 Subject: [PATCH] uri handling --- ui/js/main.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ui/js/main.js b/ui/js/main.js index a0fb64fab..993812857 100644 --- a/ui/js/main.js +++ b/ui/js/main.js @@ -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 }) } });