basic URI handling
This commit is contained in:
parent
108824e294
commit
a7d484c944
4 changed files with 14 additions and 2 deletions
11
js/services/uriHandler.js
Normal file
11
js/services/uriHandler.js
Normal 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());
|
||||
Loading…
Add table
Add a link
Reference in a new issue