mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-10-08 20:32:00 -04:00
always prefer navigateFromWebAPI when navigating from a web API
This commit is contained in:
1 file changed
+1
-1
@@ -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