mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-16 00:08:59 +00:00
getNavigationType return string
This commit is contained in:
@@ -42,8 +42,8 @@ pub fn getFrom(self: *NavigationCurrentEntryChangeEvent) *NavigationHistoryEntry
|
|||||||
return self._from;
|
return self._from;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn getNavigationType(self: *const NavigationCurrentEntryChangeEvent) ?NavigationType {
|
pub fn getNavigationType(self: *const NavigationCurrentEntryChangeEvent) ?[]const u8 {
|
||||||
return self._navigation_type;
|
return if (self._navigation_type) |nav_type| @tagName(nav_type) else null;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub const JsApi = struct {
|
pub const JsApi = struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user