diff options
author | Dominik Guzei <dominik.guzei@gmail.com> | 2019-03-08 17:34:27 +0100 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2019-03-08 08:34:27 -0800 |
commit | baa45d935540601c07977e4d786e0953165cf1fa (patch) | |
tree | eee0423829cd4b8fb6306620edd8e85bc6fdaed8 /src/actions | |
parent | fix(Linux): Fix minimized window focusing (#1304) (@skoruppa) (diff) | |
download | ferdium-app-baa45d935540601c07977e4d786e0953165cf1fa.tar.gz ferdium-app-baa45d935540601c07977e4d786e0953165cf1fa.tar.zst ferdium-app-baa45d935540601c07977e4d786e0953165cf1fa.zip |
Fix/service webview unmounting (#1328)
* detach service when underlying webview unmounts
* disable no-param-reassign eslint rule
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/service.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/actions/service.js b/src/actions/service.js index 5d483b12a..ceaabc31e 100644 --- a/src/actions/service.js +++ b/src/actions/service.js | |||
@@ -1,4 +1,5 @@ | |||
1 | import PropTypes from 'prop-types'; | 1 | import PropTypes from 'prop-types'; |
2 | import ServiceModel from '../models/Service'; | ||
2 | 3 | ||
3 | export default { | 4 | export default { |
4 | setActive: { | 5 | setActive: { |
@@ -36,6 +37,9 @@ export default { | |||
36 | serviceId: PropTypes.string.isRequired, | 37 | serviceId: PropTypes.string.isRequired, |
37 | webview: PropTypes.object.isRequired, | 38 | webview: PropTypes.object.isRequired, |
38 | }, | 39 | }, |
40 | detachService: { | ||
41 | service: PropTypes.instanceOf(ServiceModel).isRequired, | ||
42 | }, | ||
39 | focusService: { | 43 | focusService: { |
40 | serviceId: PropTypes.string.isRequired, | 44 | serviceId: PropTypes.string.isRequired, |
41 | }, | 45 | }, |