summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/index.js')
-rwxr-xr-xStoneIsland/platforms/ios/www/js/index.js14
1 files changed, 6 insertions, 8 deletions
diff --git a/StoneIsland/platforms/ios/www/js/index.js b/StoneIsland/platforms/ios/www/js/index.js
index 77f8a782..050a729c 100755
--- a/StoneIsland/platforms/ios/www/js/index.js
+++ b/StoneIsland/platforms/ios/www/js/index.js
@@ -83,15 +83,13 @@ var app = (function(){
$("body").removeClass("loading")
}
-
- var pause_time = 0
- app.paused = function(){
-
- }
-
+ var refresh_time = +Date.now()
+ app.paused = function(){}
app.resumed = function(){
- if (! pause_time) return
- if (Date.now() - pause_time > 60 * 60 * 1000) {
+ geo.fetch()
+ var now = +Date.now()
+ if (now - refresh_time > 60 * 60 * 1000) {
+ refresh_time = now
app.blog.refresh()
}
}