Selaa lähdekoodia

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

Ahmad Kholid 3 vuotta sitten
vanhempi
commit
4d47f971aa
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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'));
       }, ms);
     }
-    if (listenError)
+    if (listenError && BROWSER_TYPE === 'chrome')
       browser.webNavigation.onErrorOccurred.addListener(onErrorOccurred);
 
     const activeTabStatus = () => {