mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibWeb: Make preferred languages configurable
This also changes fetch to use the preferred languages for the Accept-Language header.
This commit is contained in:
committed by
Tim Ledbetter
parent
2cfc1873c0
commit
2ca8fd1832
@@ -169,6 +169,11 @@ void ViewImplementation::set_preferred_motion(Web::CSS::PreferredMotion motion)
|
||||
client().async_set_preferred_motion(page_id(), motion);
|
||||
}
|
||||
|
||||
void ViewImplementation::set_preferred_languages(Vector<String> preferred_languages)
|
||||
{
|
||||
client().async_set_preferred_languages(page_id(), move(preferred_languages));
|
||||
}
|
||||
|
||||
void ViewImplementation::set_enable_do_not_track(bool enable)
|
||||
{
|
||||
client().async_set_enable_do_not_track(page_id(), enable);
|
||||
|
||||
Reference in New Issue
Block a user