Add URI handler for Firefox
This commit is contained in:
parent
2cec28a6c8
commit
4c2f3b5f5f
1 changed files with 1 additions and 2 deletions
|
|
@ -6,8 +6,7 @@ UriHandler.prototype.register = function() {
|
||||||
var base = window.location.origin + '/';
|
var base = window.location.origin + '/';
|
||||||
var url = base + '#!/uri-payment/%s';
|
var url = base + '#!/uri-payment/%s';
|
||||||
|
|
||||||
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
|
if(navigator.registerProtocolHandler) {
|
||||||
if(navigator.registerProtocolHandler && !isFirefox) {
|
|
||||||
navigator.registerProtocolHandler('bitcoin', url, 'Copay');
|
navigator.registerProtocolHandler('bitcoin', url, 'Copay');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue