aboutsummaryrefslogtreecommitdiffstats
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/views/home.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/js/views/home.js b/www/js/views/home.js
index 28873f8..0a0480f 100644
--- a/www/js/views/home.js
+++ b/www/js/views/home.js
@@ -23,8 +23,8 @@
},
afterDisplay: function() {
- if ( navigator && navigator.network && ( navigator.network.connection.type == Connection.NONE ||
- navigator.network.connection.type == Connection.UNKNOWN ) ) {
+ if ( navigator && navigator.connection && ( navigator.connection.type == Connection.NONE ||
+ navigator.connection.type == Connection.UNKNOWN ) ) {
localStorage.offline = 1;
this.navigate( 'no_connection' );
} else {