mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 06:23:45 +00:00
remove hasListener check
This commit is contained in:
@@ -853,8 +853,6 @@ pub const Script = struct {
|
||||
self.executeCallback("load", local.toLocal(script_element._on_load), page);
|
||||
|
||||
// Dispatch load events if required.
|
||||
const event_target = script_element.asNode().asEventTarget();
|
||||
if (page._event_manager.hasListener(event_target, "load")) {
|
||||
const Event = @import("webapi/Event.zig");
|
||||
|
||||
const event = Event.initTrusted("load", .{}, page) catch |err| {
|
||||
@@ -873,7 +871,6 @@ pub const Script = struct {
|
||||
});
|
||||
return;
|
||||
};
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user