Skip to content

Commit 3043300

Browse files
committed
Add some additional safety to allowWasmEval
1 parent 074229e commit 3043300

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/ql-vscode/src/abstract-webview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export abstract class AbstractWebview<
117117
config.view,
118118
{
119119
allowInlineStyles: true,
120-
allowWasmEval: config.allowWasmEval ?? false,
120+
allowWasmEval: !!config.allowWasmEval,
121121
},
122122
);
123123
this.push(

0 commit comments

Comments
 (0)