Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/html/window.zig
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ const EventTarget = @import("../dom/event_target.zig").EventTarget;

const storage = @import("../storage/storage.zig");

const log = std.log.scoped(.window);

// https://dom.spec.whatwg.org/#interface-window-extensions
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#window
pub const Window = struct {
Expand Down Expand Up @@ -66,6 +68,10 @@ pub const Window = struct {
return self;
}

pub fn _debug(_: *Window, str: []const u8) void {
log.debug("{s}", .{str});
}

pub fn get_self(self: *Window) *Window {
return self;
}
Expand Down