diff options
author | Yuchen Pei <hi@ypei.me> | 2022-09-27 09:40:03 +1000 |
---|---|---|
committer | Yuchen Pei <hi@ypei.me> | 2022-09-27 09:40:03 +1000 |
commit | 0d1566b2614aeedd33d18a19e93954aca1df4ea8 (patch) | |
tree | 1a387192645d68b5dcff852e568b5600c6076488 | |
parent | db0013b57cce91cd516e0d9ecfa6f758f3d14d03 (diff) |
minor renaming
-rw-r--r-- | main_background.js | 2 | ||||
-rw-r--r-- | test/spec/LibreJSSpec.js | 2 |
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); |