Browse Source

fix: `timeout` is not defined

Ahmad Kholid 3 years ago
parent
commit
a36b69ab2f
2 changed files with 2 additions and 1 deletions
  1. 1 0
      src/background/workflowEngine/helper.js
  2. 1 1
      src/utils/shared.js

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

@@ -37,6 +37,7 @@ export function attachDebugger(tabId, prevTab) {
 
 export function waitTabLoaded(tabId, ms = 10000) {
   return new Promise((resolve, reject) => {
+    let timeout = null;
     const excludeErrors = ['net::ERR_BLOCKED_BY_CLIENT', 'net::ERR_ABORTED'];
 
     const onErrorOccurred = (details) => {

+ 1 - 1
src/utils/shared.js

@@ -344,7 +344,7 @@ export const tasks = {
       type: 'json',
       description: '',
       variableName: '',
-      addBOMHeader: false,
+      addBOMHeader: true,
       onConflict: 'uniquify',
       dataToExport: 'data-columns',
     },