aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/webControls/containers/WebControlsScreen.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/webControls/containers/WebControlsScreen.js')
-rw-r--r--src/features/webControls/containers/WebControlsScreen.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/features/webControls/containers/WebControlsScreen.js b/src/features/webControls/containers/WebControlsScreen.js
index 1452d5a3d..cada01a6f 100644
--- a/src/features/webControls/containers/WebControlsScreen.js
+++ b/src/features/webControls/containers/WebControlsScreen.js
@@ -9,7 +9,6 @@ import Service from '../../../models/Service';
9 9
10const URL_EVENTS = [ 10const URL_EVENTS = [
11 'load-commit', 11 'load-commit',
12 // 'dom-ready',
13 'will-navigate', 12 'will-navigate',
14 'did-navigate', 13 'did-navigate',
15 'did-navigate-in-page', 14 'did-navigate-in-page',
@@ -97,11 +96,20 @@ class WebControlsScreen extends Component {
97 this.url = url; 96 this.url = url;
98 } 97 }
99 98
99 openInBrowser() {
100 const { openExternalUrl } = this.props.actions.app;
101
102 if (!this.webview) return;
103
104 openExternalUrl({ url: this.url });
105 }
106
100 render() { 107 render() {
101 return ( 108 return (
102 <WebControls 109 <WebControls
103 goHome={() => this.goHome()} 110 goHome={() => this.goHome()}
104 reload={() => this.reload()} 111 reload={() => this.reload()}
112 openInBrowser={() => this.openInBrowser()}
105 canGoBack={this.canGoBack} 113 canGoBack={this.canGoBack}
106 goBack={() => this.goBack()} 114 goBack={() => this.goBack()}
107 canGoForward={this.canGoForward} 115 canGoForward={this.canGoForward}
@@ -121,6 +129,9 @@ WebControlsScreen.wrappedComponent.propTypes = {
121 services: PropTypes.instanceOf(ServicesStore).isRequired, 129 services: PropTypes.instanceOf(ServicesStore).isRequired,
122 }).isRequired, 130 }).isRequired,
123 actions: PropTypes.shape({ 131 actions: PropTypes.shape({
132 app: PropTypes.shape({
133 openExternalUrl: PropTypes.func.isRequired,
134 }).isRequired,
124 service: PropTypes.shape({ 135 service: PropTypes.shape({
125 reloadActive: PropTypes.func.isRequired, 136 reloadActive: PropTypes.func.isRequired,
126 }).isRequired, 137 }).isRequired,