diff options
author | 2019-03-08 15:38:17 +0100 | |
---|---|---|
committer | 2019-03-08 15:38:17 +0100 | |
commit | e1a9125e1f783894b1f712565a59b6bf6ef46a29 (patch) | |
tree | 3c35ca77560c2b011e64f9ef662d59d38198f01e /src/stores | |
parent | fix merge conflicts with latest develop (diff) | |
parent | disable no-param-reassign eslint rule (diff) | |
download | ferdium-app-e1a9125e1f783894b1f712565a59b6bf6ef46a29.tar.gz ferdium-app-e1a9125e1f783894b1f712565a59b6bf6ef46a29.tar.zst ferdium-app-e1a9125e1f783894b1f712565a59b6bf6ef46a29.zip |
merge-in webview unmounting fix
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/ServicesStore.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js index da4b19c0d..cc8eed65b 100644 --- a/src/stores/ServicesStore.js +++ b/src/stores/ServicesStore.js | |||
@@ -45,6 +45,7 @@ export default class ServicesStore extends Store { | |||
45 | this.actions.service.deleteService.listen(this._deleteService.bind(this)); | 45 | this.actions.service.deleteService.listen(this._deleteService.bind(this)); |
46 | this.actions.service.clearCache.listen(this._clearCache.bind(this)); | 46 | this.actions.service.clearCache.listen(this._clearCache.bind(this)); |
47 | this.actions.service.setWebviewReference.listen(this._setWebviewReference.bind(this)); | 47 | this.actions.service.setWebviewReference.listen(this._setWebviewReference.bind(this)); |
48 | this.actions.service.detachService.listen(this._detachService.bind(this)); | ||
48 | this.actions.service.focusService.listen(this._focusService.bind(this)); | 49 | this.actions.service.focusService.listen(this._focusService.bind(this)); |
49 | this.actions.service.focusActiveService.listen(this._focusActiveService.bind(this)); | 50 | this.actions.service.focusActiveService.listen(this._focusActiveService.bind(this)); |
50 | this.actions.service.toggleService.listen(this._toggleService.bind(this)); | 51 | this.actions.service.toggleService.listen(this._toggleService.bind(this)); |
@@ -344,6 +345,11 @@ export default class ServicesStore extends Store { | |||
344 | service.isAttached = true; | 345 | service.isAttached = true; |
345 | } | 346 | } |
346 | 347 | ||
348 | @action _detachService({ service }) { | ||
349 | service.webview = null; | ||
350 | service.isAttached = false; | ||
351 | } | ||
352 | |||
347 | @action _focusService({ serviceId }) { | 353 | @action _focusService({ serviceId }) { |
348 | const service = this.one(serviceId); | 354 | const service = this.one(serviceId); |
349 | 355 | ||