if(typeof device === ‘undefined’){ document.addEventListener(“deviceready”, onDeviceReady, false); }else{ onDeviceReady(); }
if(typeof device === ‘undefined’){ document.addEventListener(“deviceready”, onDeviceReady, false); }else{ onDeviceReady(); }