Change routes to old hastag mode
This commit is contained in:
parent
ae9deaa6f8
commit
e3eeab0eb6
15 changed files with 44 additions and 43 deletions
|
|
@ -5,7 +5,10 @@ var UriHandler = function() {};
|
|||
UriHandler.prototype.register = function() {
|
||||
var base = window.location.origin + '/';
|
||||
var url = base + '#/uri-payment/%s';
|
||||
navigator.registerProtocolHandler('bitcoin', url, 'Copay');
|
||||
|
||||
if(navigator.registerProtocolHandler) {
|
||||
navigator.registerProtocolHandler('bitcoin', url, 'Copay');
|
||||
}
|
||||
};
|
||||
|
||||
angular.module('copayApp.services').value('uriHandler', new UriHandler());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue