diff options
author | 2019-01-04 20:08:06 +0100 | |
---|---|---|
committer | 2019-01-04 20:08:06 +0100 | |
commit | 67fe304de297bb9aed8f9d09c5302d9676f4f383 (patch) | |
tree | 05f258e574eab7f8ce42af35520d21e996ad5b54 /src/models/Service.js | |
parent | Remove debugging (diff) | |
download | ferdium-app-67fe304de297bb9aed8f9d09c5302d9676f4f383.tar.gz ferdium-app-67fe304de297bb9aed8f9d09c5302d9676f4f383.tar.zst ferdium-app-67fe304de297bb9aed8f9d09c5302d9676f4f383.zip |
Improve service loader info
Diffstat (limited to 'src/models/Service.js')
-rw-r--r-- | src/models/Service.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/models/Service.js b/src/models/Service.js index 84fded584..7f3020060 100644 --- a/src/models/Service.js +++ b/src/models/Service.js | |||
@@ -189,13 +189,16 @@ export default class Service { | |||
189 | this.isError = false; | 189 | this.isError = false; |
190 | }); | 190 | }); |
191 | 191 | ||
192 | this.webview.addEventListener('did-frame-finish-load', () => { | 192 | const didLoad = () => { |
193 | this.isLoading = false; | 193 | this.isLoading = false; |
194 | 194 | ||
195 | if (!this.isError) { | 195 | if (!this.isError) { |
196 | this.isFirstLoad = false; | 196 | this.isFirstLoad = false; |
197 | } | 197 | } |
198 | }); | 198 | }; |
199 | |||
200 | this.webview.addEventListener('did-frame-finish-load', didLoad.bind(this)); | ||
201 | this.webview.addEventListener('did-navigate', didLoad.bind(this)); | ||
199 | 202 | ||
200 | this.webview.addEventListener('did-fail-load', (event) => { | 203 | this.webview.addEventListener('did-fail-load', (event) => { |
201 | debug('Service failed to load', this.name, event); | 204 | debug('Service failed to load', this.name, event); |