diff --git a/ui/js/app.js b/ui/js/app.js index 85f8891a6..472be423c 100644 --- a/ui/js/app.js +++ b/ui/js/app.js @@ -95,6 +95,10 @@ var App = React.createClass({ this.alertError(event.detail); }); + ipcRenderer.on('open-uri-requested', (event, uri) => { + this.openUri(uri); + }); + //open links in external browser and skip full redraw on changing page document.addEventListener('click', (event) => { var target = event.target; @@ -152,7 +156,7 @@ var App = React.createClass({ pageArgs: term }); }, - onSubmit: function(uri) { + openUri: function(uri) { this._storeHistoryOfNextRender = true; this.setState({ address: uri, @@ -275,7 +279,7 @@ var App = React.createClass({ this._fullScreenPages.includes(this.state.viewingPage) ? mainContent :