diff options
Diffstat (limited to 'src/models/Service.js')
-rw-r--r-- | src/models/Service.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/models/Service.js b/src/models/Service.js index 7a0310ebc..08dbc0b5f 100644 --- a/src/models/Service.js +++ b/src/models/Service.js | |||
@@ -112,6 +112,16 @@ export default class Service { | |||
112 | frameName, | 112 | frameName, |
113 | options, | 113 | options, |
114 | })); | 114 | })); |
115 | |||
116 | this.webview.addEventListener('crashed', (e) => { | ||
117 | console.log(e); | ||
118 | let reload = confirm('Service crashed. Reload?'); | ||
119 | if (reload) { | ||
120 | store.actions.service.reload({ | ||
121 | serviceId: this.id | ||
122 | }); | ||
123 | } | ||
124 | }); | ||
115 | } | 125 | } |
116 | 126 | ||
117 | initializeWebViewListener() { | 127 | initializeWebViewListener() { |