Bring mobile back to life
This commit is contained in:
parent
82acccce2a
commit
ef51227cda
4 changed files with 14 additions and 10 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue