URL handler to return the code after send a request for access token

This commit is contained in:
Gustavo Maximiliano Cortez 2015-09-09 14:15:08 -03:00
commit 38a4919f01
7 changed files with 108 additions and 13 deletions

View file

@ -9,8 +9,14 @@ angular.element(document).ready(function() {
var handleBitcoinURI = function(url) {
if (!url) return;
if (url.indexOf('glidera') != -1) {
url = '#/uri-glidera' + url.replace('bitcoin://glidera', '');
}
else {
url = '#/uri-payment/' + url;
}
setTimeout(function() {
window.location = '#/uri-payment/' + url;
window.location = url;
}, 1000);
};