mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-28 14:43:28 +00:00
always prefer navigateFromWebAPI when navigating from a web API
This commit is contained in:
@@ -42,7 +42,7 @@ pub const Location = struct {
|
||||
}
|
||||
|
||||
pub fn set_href(_: *const Location, href: []const u8, page: *Page) !void {
|
||||
return page.navigate(href, .{ .reason = .script });
|
||||
return page.navigateFromWebAPI(href, .{ .reason = .script });
|
||||
}
|
||||
|
||||
pub fn get_protocol(self: *Location) []const u8 {
|
||||
|
||||
Reference in New Issue
Block a user