Skip to content

Commit

Permalink
fix: supports top-level await and namespace isolation
Browse files Browse the repository at this point in the history
  • Loading branch information
ACTCD committed Nov 6, 2024
1 parent 8efc6ea commit 3b92b3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ext/content-scripts/entry-userscripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function triageJS(userscript) {
function injectJS(userscript) {
const filename = userscript.scriptObject.filename;
const name = userscript.scriptObject.name;
const code = `${userscript.code} //# sourceURL=${
const code = `(async () => {\n${userscript.code}\n})(); //# sourceURL=${
filename.replace(/\s/g, "-") + usTag
}`;
let injectInto = userscript.scriptObject["inject-into"];
Expand Down

0 comments on commit 3b92b3b

Please sign in to comment.