basic URI handling

This commit is contained in:
Manuel Araoz 2014-06-30 18:41:17 -03:00
commit a7d484c944
4 changed files with 14 additions and 2 deletions

11
js/services/uriHandler.js Normal file
View file

@ -0,0 +1,11 @@
'use strict';
var UriHandler = function() {};
UriHandler.prototype.register = function() {
navigator.registerProtocolHandler('bitcoin',
'uri=%s',
'Copay');
};
angular.module('copayApp.services').value('uriHandler', new UriHandler());