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 4c2b95d commit b8d4e3aCopy full SHA for b8d4e3a
src/browser/html/location.zig
@@ -41,13 +41,8 @@ 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.navigateFromWebAPI(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 "";
+ return self.url.get_protocol();
51
52
53
pub fn get_host(self: *Location, page: *Page) ![]const u8 {
0 commit comments