mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-30 07:31:47 +00:00
window: inject DocumentHTML instead of Document
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user