window: inject DocumentHTML instead of Document

This commit is contained in:
Pierre Tachoire
2024-03-07 14:39:51 +01:00
parent 500da5bfd8
commit 886c9daa47
6 changed files with 9 additions and 9 deletions

View File

@@ -22,7 +22,7 @@ fn execJS(
// alias global as self and window
var window = Window.create(null);
window.replaceDocument(parser.documentHTMLToDocument(doc));
window.replaceDocument(doc);
try js_env.bindGlobal(window);
// launch shellExec