mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 07:03:29 +00:00
change after rebase
This commit is contained in:
@@ -41,13 +41,8 @@ pub const Location = struct {
|
|||||||
return page.navigateFromWebAPI(href, .{ .reason = .script });
|
return page.navigateFromWebAPI(href, .{ .reason = .script });
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_href(_: *const Location, href: []const u8, page: *Page) !void {
|
|
||||||
return page.navigateFromWebAPI(href, .{ .reason = .script });
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn get_protocol(self: *Location) []const u8 {
|
pub fn get_protocol(self: *Location) []const u8 {
|
||||||
if (self.url) |*u| return u.get_protocol();
|
return self.url.get_protocol();
|
||||||
return "";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_host(self: *Location, page: *Page) ![]const u8 {
|
pub fn get_host(self: *Location, page: *Page) ![]const u8 {
|
||||||
|
|||||||
Reference in New Issue
Block a user