diff options
Diffstat (limited to 'Userland/DevTools/Inspector/main.cpp')
-rw-r--r-- | Userland/DevTools/Inspector/main.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Userland/DevTools/Inspector/main.cpp b/Userland/DevTools/Inspector/main.cpp index d3abcaa10f..e9a5fe3682 100644 --- a/Userland/DevTools/Inspector/main.cpp +++ b/Userland/DevTools/Inspector/main.cpp @@ -79,13 +79,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) } } - if (!Desktop::Launcher::add_allowed_handler_with_only_specific_urls( - "/bin/Help", - { URL::create_with_file_protocol("/usr/share/man/man1/Inspector.md") }) - || !Desktop::Launcher::seal_allowlist()) { - warnln("Failed to set up allowed launch URLs"); - return 1; - } + TRY(Desktop::Launcher::add_allowed_handler_with_only_specific_urls("/bin/Help", { URL::create_with_file_protocol("/usr/share/man/man1/Inspector.md") })); + TRY(Desktop::Launcher::seal_allowlist()); window->set_title("Inspector"); window->resize(685, 500); |