mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibWeb: Add a default for the navigator's languages
This will mean that non-Qt frontends don't return an empty array.
This commit is contained in:
parent
89a4fa4d24
commit
7b105e1ecf
Notes:
github-actions[bot]
2024-07-27 06:19:12 +00:00
Author: https://github.com/jamierocks Commit: https://github.com/LadybirdBrowser/ladybird/commit/7b105e1ecfe Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/848
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ private:
|
|||
NonnullRefPtr<ResourceLoaderConnector> m_connector;
|
||||
String m_user_agent;
|
||||
String m_platform;
|
||||
Vector<String> m_preferred_languages;
|
||||
Vector<String> m_preferred_languages = { "en"_string };
|
||||
NavigatorCompatibilityMode m_navigator_compatibility_mode;
|
||||
bool m_enable_do_not_track { false };
|
||||
Optional<JS::GCPtr<Page>> m_page {};
|
||||
|
|
Loading…
Reference in a new issue