aboutsummaryrefslogtreecommitdiffstats
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/mobile.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/js/mobile.js b/www/js/mobile.js
index ce1a23e..75f66ca 100644
--- a/www/js/mobile.js
+++ b/www/js/mobile.js
@@ -715,8 +715,8 @@ function decide_front_page() {
localStorage.offline = 0;
delete localStorage.currentReport;
- if ( navigator.network.connection.type == Connection.NONE ||
- navigator.network.connection.type == Connection.UNKNOWN ) {
+ if ( navigator && navigator.network && ( navigator.network.connection.type == Connection.NONE ||
+ navigator.network.connection.type == Connection.UNKNOWN ) ) {
localStorage.offline = 1;
$.mobile.changePage( 'no_connection.html' );
} else {