diff options
author | Struan Donald <struan@exo.org.uk> | 2013-07-19 16:38:18 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-07-19 16:38:18 +0100 |
commit | 4419082c3303b9e66653ec3f180f2b71b34fefcf (patch) | |
tree | 74fc14655b589b89c271faa61a96b0f846a5b91a /src | |
parent | 6f327c25ed2906fc7a8571460927004ea869ba89 (diff) |
If we have a net connection when we resume then set app to online
mode otherwise it gets stuck in offline mode if it was there before
the pause
Diffstat (limited to 'src')
-rw-r--r-- | src/js/app.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/js/app.js b/src/js/app.js index 457bc3b..af02b0a 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -66,6 +66,8 @@ var tpl = { if ( navigator && navigator.connection && ( navigator.connection.type == Connection.NONE || navigator.connection.type == Connection.UNKNOWN ) ) { FMS.offline(); + } else { + FMS.online(); } }, |