mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
Base: Move config files out of home/anon and into default-config
This commit is contained in:
parent
4ef0a123ea
commit
a443f50807
Notes:
sideshowbarker
2024-07-18 02:44:17 +09:00
Author: https://github.com/circl-lastname
Commit: a443f50807
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/672
8 changed files with 34 additions and 29 deletions
|
|
@ -197,7 +197,7 @@ static ErrorOr<void> load_content_filters()
|
|||
{
|
||||
auto buffer = TRY(ByteBuffer::create_uninitialized(4096));
|
||||
|
||||
auto resource = TRY(Core::Resource::load_from_uri("resource://ladybird/BrowserContentFilters.txt"sv));
|
||||
auto resource = TRY(Core::Resource::load_from_uri("resource://ladybird/default-config/BrowserContentFilters.txt"sv));
|
||||
auto ad_filter_list = TRY(InputBufferedSeekable<FixedMemoryStream>::create(make<FixedMemoryStream>(resource->data())));
|
||||
|
||||
Vector<String> patterns;
|
||||
|
|
@ -221,7 +221,7 @@ static ErrorOr<void> load_autoplay_allowlist()
|
|||
{
|
||||
auto buffer = TRY(ByteBuffer::create_uninitialized(4096));
|
||||
|
||||
auto resource = TRY(Core::Resource::load_from_uri("resource://ladybird/BrowserAutoplayAllowlist.txt"sv));
|
||||
auto resource = TRY(Core::Resource::load_from_uri("resource://ladybird/default-config/BrowserAutoplayAllowlist.txt"sv));
|
||||
auto allowlist = TRY(InputBufferedSeekable<FixedMemoryStream>::create(make<FixedMemoryStream>(resource->data())));
|
||||
|
||||
Vector<String> origins;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue