Custom protocol handlers in Chrome
-
28-10-2019 - |
Question
Is it possible to register a custom protocol handler in Chrome? This code works in Firefox, but not chrome:
navigator.registerProtocolHandler("random",
"https://www.example.com/?uri=%s",
"Random Protocal");
Solution
According to MDN, it must start with web+
, starting with Chrome 13.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow