aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2022-09-23 11:58:16 +1000
committerYuchen Pei <hi@ypei.me>2022-09-23 11:58:16 +1000
commit32c511b0c57ebcb37a7593a6b8f07d0035ef74a9 (patch)
tree25bb99416c460a5e287fb94cc78ef23dbc122fe3
parent5fa19f66d2c39bf14e653765a2f5f86820cd3d3d (diff)
typos
-rw-r--r--common/checks.js2
-rw-r--r--main_background.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/common/checks.js b/common/checks.js
index 503258d..67c835b 100644
--- a/common/checks.js
+++ b/common/checks.js
@@ -23,7 +23,7 @@
const acorn = require('acorn');
const { licenses } = require('./license_definitions.js');
const { patternUtils } = require('./pattern_utils.js');
-const { makeDebugLogger } = require('./common/debug.js');
+const { makeDebugLogger } = require('./debug.js');
const fnameData = require('./fname_data.json').fname_data;
const LIC_RE = /@licstartThefollowingistheentirelicensenoticefortheJavaScriptcodeinthis(?:page|file)(.*)?@licendTheaboveistheentirelicensenoticefortheJavaScriptcodeinthis(?:page|file)/mi;
diff --git a/main_background.js b/main_background.js
index 0cdb1c1..361a933 100644
--- a/main_background.js
+++ b/main_background.js
@@ -680,7 +680,7 @@ async function editHtml(html, documentUrl, tabId, frameId, whitelisted) {
return null;
}
- const scripts = htmlDoc.scripts;
+ let scripts = htmlDoc.scripts;
const metaElement = htmlDoc.getElementById('LibreJS-info');
let firstScriptSrc = '';