Fix Conflicts:
css/main.css views/modals/qr-address.html
This commit is contained in:
commit
a3baab397c
9 changed files with 46 additions and 29 deletions
16
js/mobile.js
Normal file
16
js/mobile.js
Normal 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);
|
||||
}
|
||||
|
|
@ -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');
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue