add first uri handler

This commit is contained in:
Manuel Araoz 2014-07-01 19:35:15 -03:00
commit 433f1570de
4 changed files with 43 additions and 6 deletions

View file

@ -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());