mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 10:19:03 +03:00
DesktopServices: Add irc URL protocol handler
This commit is contained in:
parent
418092a71a
commit
c3b2bfabfe
Notes:
sideshowbarker
2024-07-19 07:23:28 +09:00
Author: https://github.com/bcoles Commit: https://github.com/SerenityOS/serenity/commit/c3b2bfabfec Pull-request: https://github.com/SerenityOS/serenity/pull/1927 Reviewed-by: https://github.com/awesomekling ✅
@ -39,6 +39,9 @@ bool DesktopServices::open(const URL& url)
|
||||
if (url.protocol() == "file")
|
||||
return open_file_url(url);
|
||||
|
||||
if (url.protocol() == "irc")
|
||||
return spawn("/bin/IRCClient", url.to_string());
|
||||
|
||||
return spawn("/bin/Browser", url.to_string());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user