mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-01 06:07:59 +00:00
LibWeb: Use current platform for navigator.platform
Before, navigator.platform would always report the platform as "Serenity OS", regardless of whether or not that was true. It also did not include the architecture, which Firefox and Chrome both do. Now, it can report either "Linux x86_64" or "SerenityOS AArch64".
This commit is contained in:
@@ -58,6 +58,7 @@ ErrorOr<NonnullRefPtr<ResourceLoader>> ResourceLoader::try_create(NonnullRefPtr<
|
||||
ResourceLoader::ResourceLoader(NonnullRefPtr<ResourceLoaderConnector> connector)
|
||||
: m_connector(move(connector))
|
||||
, m_user_agent(default_user_agent)
|
||||
, m_platform(default_platform)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user