mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-26 19:28:59 +00:00
LibWeb: Show "x86_64" in the user agent string on x86_64 :^)
This commit is contained in:
parent
33260ea99b
commit
56d25d7210
Notes:
sideshowbarker
2024-07-18 11:10:33 +09:00
Author: https://github.com/awesomekling
Commit: 56d25d7210
1 changed files with 7 additions and 1 deletions
|
@ -17,7 +17,13 @@ class RequestClient;
|
|||
|
||||
namespace Web {
|
||||
|
||||
constexpr auto default_user_agent = "Mozilla/4.0 (SerenityOS; x86) LibWeb+LibJS (Not KHTML, nor Gecko) LibWeb";
|
||||
#if ARCH(I386)
|
||||
# define CPU_STRING "x86"
|
||||
#else
|
||||
# define CPU_STRING "x86_64"
|
||||
#endif
|
||||
|
||||
constexpr auto default_user_agent = "Mozilla/4.0 (SerenityOS; " CPU_STRING ") LibWeb+LibJS (Not KHTML, nor Gecko) LibWeb";
|
||||
|
||||
class ResourceLoader : public Core::Object {
|
||||
C_OBJECT(ResourceLoader)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue