Merge pull request #998 from yemel/fix/browser-extensions
Fix/browser extensions
This commit is contained in:
commit
313e3e4fcd
6 changed files with 25 additions and 19 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