Register "magnet" URI scheme handler

When a web browser executes this code, it should display a prompt to the user, asking permission to allow the web application to register as a handler for the URI scheme.
This commit is contained in:
Alexey Rodionov 2016-02-19 22:44:29 +03:00
parent 23adc6e207
commit 0a055a81de

View file

@ -1,3 +1,5 @@
navigator.registerProtocolHandler 'magnet', window.location.origin + '#%s', 'βTorrent'
trackers = [
'wss://tracker.btorrent.xyz'
'wss://tracker.webtorrent.io'