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