Bring mobile back to life

This commit is contained in:
Yemel Jardi 2014-09-26 11:09:23 -03:00
commit ef51227cda
4 changed files with 14 additions and 10 deletions

View file

@ -17,13 +17,7 @@ function onDeviceReady() {
function handleBitcoinURI(url) {
if (!url) return;
var body = document.getElementsByTagName('nav')[0];
var $rootScope = angular.element(body).scope();
$rootScope.pendingPayment = new bitcore.BIP21(url);
// Redirect or reload controller (if already there)
window.location = ($rootScope.wallet ? '#!/send' : '#!/open') + '?r=' + Math.random();
window.location = '#!/uri-payment/' + encodeURIComponent(url);
}
window.plugins.webintent.getUri(handleBitcoinURI);