Skip to content

Commit 4bdc6a0

Browse files
author
phweb
committed
убрал StatusBar
1 parent e69fc31 commit 4bdc6a0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

www/js/init.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
/* global require, $ */
1+
/* global require, $, StatusBar */
22
require.config({
3-
//urlArgs: "v=" + (new Date()).getTime(),
3+
urlArgs: "v=" + (new Date()).getTime(),
44
shim: {
55
store: {
66
deps: ['backbone'],
@@ -46,6 +46,12 @@ require.config({
4646
window.open($(this).attr('href'), '_system');
4747
});
4848
});
49+
50+
document.addEventListener('deviceready', function () {
51+
if ('StatusBar' in window) {
52+
StatusBar.hide();
53+
}
54+
});
4955
}
5056

5157
if (ready.state) {

0 commit comments

Comments
 (0)