We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f24f4c commit 6f2ff4cCopy full SHA for 6f2ff4c
src/browser_runtime.js
@@ -7,13 +7,18 @@
7
8
async function run(script) {
9
const scoped = !!script.attributes.scoped;
10
+ const outputHanzi = !(
11
+ script.attributes.outputHanzi &&
12
+ script.attributes.outputHanzi.value === "false"
13
+ );
14
let code = script.innerText;
15
if (script.src) {
16
const response = await fetch(script.src);
17
code = (await response.text()).toString();
18
}
19
execute(code, {
20
scoped,
21
+ outputHanzi,
22
logCallback: isDev ? console.log : () => {},
23
resetVarCnt: false
24
});
0 commit comments