var app = { | |
initialize: function() { | |
document.addEventListener('deviceready', this.onDeviceReady.bind(this), false); | |
}, | |
onDeviceReady: function() { | |
}, | |
toMain:function(){ | |
window.localStorage.setItem("firstload",'no'); | |
var uid = window.localStorage.getItem("token"); | |
if (isEmpty(uid)) { | |
window.location = "login.html"; | |
//toPage("login.html") | |
} else { | |
window.location = "main.html"; | |
} | |
} | |
}; | |
app.initialize(); |