Add URI handler for Firefox

This commit is contained in:
Gustavo Maximiliano Cortez 2014-11-23 18:58:51 -03:00
parent 2cec28a6c8
commit 4c2f3b5f5f
1 changed files with 1 additions and 2 deletions

View File

@ -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');
}
};