Hide status bar

This commit is contained in:
Thibault Blanc Beyne 2018-08-22 17:47:44 +02:00
parent e271be8ea0
commit 11be8e4798
1 changed files with 10 additions and 2 deletions

View File

@ -1,8 +1,16 @@
let game, context; let game, context;
document.addEventListener("deviceready", () => {
if (typeof StatusBar !== 'undefined') {
StatusBar.hide();
}
init(); init();
loop(); loop();
}, false);
function init() { function init() {
let canvas = document.getElementById('canvas'); let canvas = document.getElementById('canvas');