'use strict';

var UriHandler = function() {};

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) {
    navigator.registerProtocolHandler('bitcoin', url, 'Copay');
  }
};

angular.module('copayApp.services').value('uriHandler', new UriHandler());

@@ -174,85 +174,8 @@
 ';%0A%0A
-  var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') %3E -1;%0A
   if
@@ -212,22 +212,8 @@
 dler
- && !isFirefox
 ) %7B%0A

Add URI handler for Firefox