mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:38:10 +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:
parent
1ea24c38b4
commit
1653c5ea41
3 changed files with 7 additions and 1 deletions
|
@ -40,7 +40,7 @@ DeprecatedString NavigatorIDMixin::platform() const
|
|||
// platform.
|
||||
|
||||
// FIXME: Use some portion of the user agent string to make spoofing work 100%
|
||||
return "SerenityOS";
|
||||
return ResourceLoader::the().platform();
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-useragent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue