Fix Conflicts:

css/main.css
	views/modals/qr-address.html
This commit is contained in:
Gustavo Maximiliano Cortez 2014-08-01 13:14:10 -03:00
commit a3baab397c
9 changed files with 46 additions and 29 deletions

16
js/mobile.js Normal file
View file

@ -0,0 +1,16 @@
'use strict';
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
setTimeout(function(){ navigator.splashscreen.hide(); }, 2000);
document.addEventListener("menubutton", function() {
var nav = document.getElementsByTagName('nav')[0];
if (!nav) return;
var menu = nav.getElementsByTagName('section')[0].getElementsByTagName('a')[0];
if (menu.offsetParent) menu.click();
}, false);
}

View file

@ -6,7 +6,8 @@ UriHandler.prototype.register = function() {
var base = window.location.origin + '/';
var url = base + '#!/uri-payment/%s';
if(navigator.registerProtocolHandler) {
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
if(navigator.registerProtocolHandler && !isFirefox) {
navigator.registerProtocolHandler('bitcoin', url, 'Copay');
}
};