aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main_background.js2
-rw-r--r--test/spec/LibreJSSpec.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/main_background.js b/main_background.js
index 76cc8c4..f947657 100644
--- a/main_background.js
+++ b/main_background.js
@@ -889,7 +889,7 @@ async function init_addon() {
// export testable functions to the global scope
this.LibreJS = {
editHtml,
- handle_script: handleScript,
+ handleScript,
ExternalLicenses,
ListManager, ListStore, Storage,
};
diff --git a/test/spec/LibreJSSpec.js b/test/spec/LibreJSSpec.js
index 77563d2..7828bcb 100644
--- a/test/spec/LibreJSSpec.js
+++ b/test/spec/LibreJSSpec.js
@@ -95,7 +95,7 @@ describe('LibreJS\' components', () => {
let url = 'https://www.gnu.org/mock-script.js';
let processScript = async (source, whitelisted = false) =>
- await LibreJS.handle_script({
+ await LibreJS.handleScript({
text: source,
request: { url, tabId: tab.id, documentUrl, frameId: 0 },
}, whitelisted);