Skip to content

Commit b8d4e3a

Browse files
committed
change after rebase
1 parent 4c2b95d commit b8d4e3a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/browser/html/location.zig

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,8 @@ pub const Location = struct {
4141
return page.navigateFromWebAPI(href, .{ .reason = .script });
4242
}
4343

44-
pub fn set_href(_: *const Location, href: []const u8, page: *Page) !void {
45-
return page.navigateFromWebAPI(href, .{ .reason = .script });
46-
}
47-
4844
pub fn get_protocol(self: *Location) []const u8 {
49-
if (self.url) |*u| return u.get_protocol();
50-
return "";
45+
return self.url.get_protocol();
5146
}
5247

5348
pub fn get_host(self: *Location, page: *Page) ![]const u8 {

0 commit comments

Comments
 (0)