aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/ServicesStore.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2018-12-02 00:51:49 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2018-12-02 00:51:49 +0100
commitc10bc20a687c2cb17f752b649a51e3953e16539f (patch)
treeadcc71dba1655d366d0e8ecdd138bbdb620aa371 /src/stores/ServicesStore.js
parentDon't delay app when user has no services (diff)
downloadferdium-app-c10bc20a687c2cb17f752b649a51e3953e16539f.tar.gz
ferdium-app-c10bc20a687c2cb17f752b649a51e3953e16539f.tar.zst
ferdium-app-c10bc20a687c2cb17f752b649a51e3953e16539f.zip
Check if service is enabled before trying to reload
Diffstat (limited to 'src/stores/ServicesStore.js')
-rw-r--r--src/stores/ServicesStore.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js
index 8f217ea94..99b091589 100644
--- a/src/stores/ServicesStore.js
+++ b/src/stores/ServicesStore.js
@@ -439,6 +439,8 @@ export default class ServicesStore extends Store {
439 439
440 @action _reload({ serviceId }) { 440 @action _reload({ serviceId }) {
441 const service = this.one(serviceId); 441 const service = this.one(serviceId);
442 if (!service.isEnabled) return;
443
442 service.resetMessageCount(); 444 service.resetMessageCount();
443 445
444 service.webview.loadURL(service.url); 446 service.webview.loadURL(service.url);