aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/views
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/views')
-rw-r--r--www/js/views/home.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/www/js/views/home.js b/www/js/views/home.js
index 383275e..dd908f0 100644
--- a/www/js/views/home.js
+++ b/www/js/views/home.js
@@ -23,9 +23,7 @@
},
afterDisplay: function() {
- if ( navigator && navigator.connection && ( navigator.connection.type == Connection.NONE ||
- navigator.connection.type == Connection.UNKNOWN ) ) {
- localStorage.offline = 1;
+ if ( FMS.isOffline ) {
this.navigate( 'offline' );
} else if ( FMS.currentDraft && (
FMS.currentDraft.get('title') || FMS.currentDraft.get('lat') ||