browser: use loop.resetJS

This commit is contained in:
Pierre Tachoire
2025-03-27 14:15:05 +01:00
parent 3f1d0df7f9
commit e347e7e5fb

View File

@@ -244,7 +244,7 @@ pub const Session = struct {
std.debug.assert(self.page != null); std.debug.assert(self.page != null);
// Reset all existing callbacks. // Reset all existing callbacks.
self.app.loop.reset(); self.app.loop.resetJS();
self.env.stop(); self.env.stop();
// TODO unload document: https://html.spec.whatwg.org/#unloading-documents // TODO unload document: https://html.spec.whatwg.org/#unloading-documents