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 9b4ea7a commit cea4f05Copy full SHA for cea4f05
src/browser/html/location.zig
@@ -41,6 +41,10 @@ pub const Location = struct {
41
return page.navigateFromWebAPI(href, .{ .reason = .script });
42
}
43
44
+ pub fn set_href(_: *const Location, href: []const u8, page: *Page) !void {
45
+ return page.navigate(href, .{ .reason = .script });
46
+ }
47
+
48
pub fn get_protocol(self: *Location) []const u8 {
49
if (self.url) |*u| return u.get_protocol();
50
return "";
0 commit comments