mirror of https://github.com/BTCPrivate/copay.git
Add URI handler for Firefox
This commit is contained in:
parent
2cec28a6c8
commit
4c2f3b5f5f
|
@ -6,8 +6,7 @@ UriHandler.prototype.register = function() {
|
|||
var base = window.location.origin + '/';
|
||||
var url = base + '#!/uri-payment/%s';
|
||||
|
||||
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
|
||||
if(navigator.registerProtocolHandler && !isFirefox) {
|
||||
if(navigator.registerProtocolHandler) {
|
||||
navigator.registerProtocolHandler('bitcoin', url, 'Copay');
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue