Browse Source

fix: task still running after browser window's closed (#1140)

Ahmad Kholid 1 year ago
parent
commit
8c3044c421
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/background/BackgroundEventsListeners.js

+ 2 - 0
src/background/BackgroundEventsListeners.js

@@ -44,6 +44,8 @@ class BackgroundEventsListeners {
   }
 
   static onRuntimeStartup() {
+    browser.storage.local.remove('workflowStates');
+    (browser.action || browser.browserAction).setBadgeText({ text: '' });
     BackgroundWorkflowTriggers.reRegisterTriggers(true);
   }