Add some additional safety to allowWasmEval

This commit is contained in:
Koen Vlaswinkel
2023-03-01 17:17:27 +01:00
parent 074229e2a0
commit 304330074d

View File

@@ -117,7 +117,7 @@ export abstract class AbstractWebview<
config.view,
{
allowInlineStyles: true,
allowWasmEval: config.allowWasmEval ?? false,
allowWasmEval: !!config.allowWasmEval,
},
);
this.push(