Merge pull request #1343 from lightpanda-io/navigator-ua-suffix

return the app's user agent on Navigator.userAgent
This commit is contained in:
Karl Seguin authored and GitHub committed 2026-01-09 06:56:01 +08:00
commit df27aeef6c
1 file changed
+3 -2
+3 -2
View File
@@ -18,14 +18,15 @@
const builtin = @import("builtin");
const js = @import("../js/js.zig");
const Page = @import("../Page.zig");
const Navigator = @This();
_pad: bool = false,
pub const init: Navigator = .{};
pub fn getUserAgent(_: *const Navigator) []const u8 {
return "Lightpanda/1.0";
pub fn getUserAgent(_: *const Navigator, page: *Page) []const u8 {
return page._session.browser.app.config.user_agent;
}
pub fn getAppName(_: *const Navigator) []const u8 {