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.
href
1 parent 20c571b commit 13c2819Copy full SHA for 13c2819
src/browser/html/location.zig
@@ -29,6 +29,10 @@ pub const Location = struct {
29
return "";
30
}
31
32
+ pub fn set_href(_: *const Location, href: []const u8, page: *Page) !void {
33
+ return page.navigate(href, .{ .reason = .script });
34
+ }
35
+
36
pub fn get_protocol(self: *Location) []const u8 {
37
if (self.url) |*u| return u.get_protocol();
38
0 commit comments