mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-10-06 19:31:41 -04:00
Merge pull request #1150 from lightpanda-io/isdone-async
isDone must be run after script's deinit
This commit is contained in:
1 file changed
+2
-1
@@ -602,8 +602,9 @@ pub const PendingScript = struct {
|
||||
return;
|
||||
}
|
||||
// async script can be evaluated immediately
|
||||
defer self.deinit();
|
||||
self.script.eval(manager.page);
|
||||
self.deinit();
|
||||
// asyncScriptIsDone must be run after the pending script is deinit.
|
||||
manager.asyncScriptIsDone();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user