Browse Source

fix: error when "Wait till tab loaded" enabled in firefox (#615)

Ahmad Kholid 3 years ago
parent
commit
4d47f971aa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/background/workflowEngine/helper.js

+ 1 - 1
src/background/workflowEngine/helper.js

@@ -67,7 +67,7 @@ export function waitTabLoaded({ tabId, listenError = false, ms = 10000 }) {
         reject(new Error('Timeout'));
         reject(new Error('Timeout'));
       }, ms);
       }, ms);
     }
     }
-    if (listenError)
+    if (listenError && BROWSER_TYPE === 'chrome')
       browser.webNavigation.onErrorOccurred.addListener(onErrorOccurred);
       browser.webNavigation.onErrorOccurred.addListener(onErrorOccurred);
 
 
     const activeTabStatus = () => {
     const activeTabStatus = () => {