candy-chat / candy

JavaScript-based multi-user chat client for XMPP.
http://candy-chat.github.io/candy
MIT License
1.32k stars 370 forks source link

Ask user to add Candy as an application for XMPP links #438

Open GreenLunar opened 8 years ago

GreenLunar commented 8 years ago

Use this code

<script type="text/javascript">
    navigator.registerProtocolHandler("xmpp", "https://hostname/%s", "Candy");
</script>
benlangfeld commented 8 years ago

Could you say something about how/where this works? Also a PR is much better than an issue ;)

GreenLunar commented 8 years ago

See http://www.lookout.net/test/handler/ http://www.lookout.net/2012/01/testing-registerprotocolhandler-and-web.html https://html.spec.whatwg.org/multipage/webappapis.html#dom-navigator-registerprotocolhandler