We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36ce227 commit bf3994fCopy full SHA for bf3994f
src/browser/html/window.zig
@@ -253,7 +253,15 @@ pub const Window = struct {
253
return self.createTimeout(cbk, 0, page, .{ .name = "queueMicrotask" });
254
}
255
256
- pub fn _matchMedia(_: *const Window, media: Env.String) !MediaQueryList {
+ pub fn _setImmediate(self: *Window, cbk: Function, page: *Page) !u32 {
257
+ return self.createTimeout(cbk, 0, page, .{ .name = "setImmediate" });
258
+ }
259
+
260
+ pub fn _clearImmediate(self: *Window, id: u32) void {
261
+ _ = self.timers.remove(id);
262
263
264
+ pub fn _matchMedia(_: *const Window, media: []const u8, page: *Page) !MediaQueryList {
265
return .{
266
.matches = false, // TODO?
267
.media = media.string,
0 commit comments