Skip to content

Commit 91ac275

Browse files
committed
dom: implement more navigator API
1 parent c9e2a29 commit 91ac275

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/html/navigator.zig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,21 @@ pub const Navigator = struct {
7777
//pub fn get_languages(self: *Navigator) [][]const u8 {
7878
// return .{self.language};
7979
//}
80+
pub fn get_online(_: *Navigator) bool {
81+
return true;
82+
}
83+
pub fn _registerProtocolHandler(_: *Navigator, scheme: []const u8, url: []const u8) void {
84+
_ = scheme;
85+
_ = url;
86+
}
87+
pub fn _unregisterProtocolHandler(_: *Navigator, scheme: []const u8, url: []const u8) void {
88+
_ = scheme;
89+
_ = url;
90+
}
91+
92+
pub fn get_cookieEnabled(_: *Navigator) bool {
93+
return true;
94+
}
8095
};
8196

8297
// Tests

0 commit comments

Comments
 (0)