summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/index.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-12-11 05:37:34 -0600
committerJules Laplace <jules@okfoc.us>2015-12-11 05:37:34 -0600
commitaa5a9b7c7cd52a69f8dd1d0cdc15475e113e6da0 (patch)
treececfdb0893eb9e936fe605478b3f8195dc7ef987 /StoneIsland/www/js/index.js
parent4178c44c48aa401f7780bec3f89430c83d50fe30 (diff)
remembered a couple things, push 0.3.4
Diffstat (limited to 'StoneIsland/www/js/index.js')
-rwxr-xr-xStoneIsland/www/js/index.js14
1 files changed, 6 insertions, 8 deletions
diff --git a/StoneIsland/www/js/index.js b/StoneIsland/www/js/index.js
index 77f8a782..050a729c 100755
--- a/StoneIsland/www/js/index.js
+++ b/StoneIsland/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()
}
}