add first uri handler
This commit is contained in:
parent
16293b035d
commit
433f1570de
4 changed files with 43 additions and 6 deletions
|
|
@ -3,9 +3,11 @@
|
|||
var UriHandler = function() {};
|
||||
|
||||
UriHandler.prototype.register = function() {
|
||||
var base = window.location.origin + '/';
|
||||
var url = base + '#/uri_payment/%s';
|
||||
console.log(url);
|
||||
navigator.registerProtocolHandler('bitcoin',
|
||||
'uri=%s',
|
||||
'Copay');
|
||||
url, 'Copay');
|
||||
};
|
||||
|
||||
angular.module('copayApp.services').value('uriHandler', new UriHandler());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue