diff options
author | 2019-10-04 18:55:51 +0200 | |
---|---|---|
committer | 2019-10-04 18:55:51 +0200 | |
commit | b521a232ac7c79527d0f3c9baa46695fa5d5e62d (patch) | |
tree | 4a8af14730b665e4e1a662239a4cd3ead3bb3da9 /src/components | |
parent | Merge branch 'i18n' into release/5.4.0 (diff) | |
parent | Remove console.log (diff) | |
download | ferdium-app-b521a232ac7c79527d0f3c9baa46695fa5d5e62d.tar.gz ferdium-app-b521a232ac7c79527d0f3c9baa46695fa5d5e62d.tar.zst ferdium-app-b521a232ac7c79527d0f3c9baa46695fa5d5e62d.zip |
fix(Workspaces): Only initialize active Workspace services when app is starting
Fix/only load workspace related services
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/services/content/ServiceWebview.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/services/content/ServiceWebview.js b/src/components/services/content/ServiceWebview.js index b3198d36a..4bab4a964 100644 --- a/src/components/services/content/ServiceWebview.js +++ b/src/components/services/content/ServiceWebview.js | |||
@@ -37,7 +37,9 @@ class ServiceWebview extends Component { | |||
37 | <ElectronWebView | 37 | <ElectronWebView |
38 | ref={(webview) => { | 38 | ref={(webview) => { |
39 | this.webview = webview; | 39 | this.webview = webview; |
40 | webview.view.addEventListener('did-stop-loading', this.refocusWebview); | 40 | if (webview && webview.view) { |
41 | webview.view.addEventListener('did-stop-loading', this.refocusWebview); | ||
42 | } | ||
41 | }} | 43 | }} |
42 | autosize | 44 | autosize |
43 | src={service.url} | 45 | src={service.url} |