mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-28 22:53:28 +00:00
not implemented on Navigation traverseTo
This commit is contained in:
@@ -267,8 +267,10 @@ pub const TraverseToOptions = struct {
|
|||||||
info: ?js.Object = null,
|
info: ?js.Object = null,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub fn _traverseTo(self: *Navigation, key: []const u8, _: ?TraverseToOptions, page: *Page) !NavigationReturn {
|
pub fn _traverseTo(self: *Navigation, key: []const u8, _opts: ?TraverseToOptions, page: *Page) !NavigationReturn {
|
||||||
// const opts = _opts orelse TraverseToOptions{};
|
if (_opts != null) {
|
||||||
|
log.debug(.browser, "not implemented", .{ .options = _opts });
|
||||||
|
}
|
||||||
|
|
||||||
for (self.entries.items, 0..) |entry, i| {
|
for (self.entries.items, 0..) |entry, i| {
|
||||||
if (std.mem.eql(u8, key, entry.key)) {
|
if (std.mem.eql(u8, key, entry.key)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user