Skip to content

Commit c55bedd

Browse files
committed
🐛 Fixed bug to enable JavaScript option
1 parent 14e67fd commit c55bedd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/visualEditor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ export class VisualEditorProvider implements vscode.CustomTextEditorProvider {
272272
const config = vscode.workspace.getConfiguration('webVisualEditor');
273273
const dom = new JSDOM(code.getText(), { includeNodeLocations: true });
274274
const document = dom.window.document;
275-
if (!config.get<boolean>('webVisualEditor.allowScript')) {
275+
if (!config.get<boolean>('allowScript')) {
276276
// Disable scripts in code
277277
document.querySelectorAll('script').forEach(el => { el.remove(); });
278278
document.querySelectorAll('body *, body').forEach(el => {

0 commit comments

Comments
 (0)