1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 02:58:11 +00:00

LibConfig: Rename pledge_domains(String) => pledge_domain(String)

pledge_domains() that takes only one String argument was specifically
added as a shortcut for pledging a single domain. So, it makes sense to
use singular here.
This commit is contained in:
Vitaly Dyachkov 2022-02-11 17:33:09 +01:00 committed by Andreas Kling
parent 873f4d5de6
commit 32b8795091
27 changed files with 28 additions and 28 deletions

View file

@ -26,7 +26,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto app = TRY(GUI::Application::try_create(arguments));
Config::pledge_domains("Chess");
Config::pledge_domain("Chess");
TRY(Desktop::Launcher::add_allowed_handler_with_only_specific_urls("/bin/Help", { URL::create_with_file_protocol("/usr/share/man/man6/Chess.md") }));
TRY(Desktop::Launcher::seal_allowlist());