|
@@ -27,11 +27,7 @@ class app.AppCache
|
|
|
return
|
|
return
|
|
|
|
|
|
|
|
reload: ->
|
|
reload: ->
|
|
|
- $.on @cache, 'updateready noupdate error', ->
|
|
|
|
|
- if location.pathname isnt '/'
|
|
|
|
|
- window.location = "/##{location.pathname}"
|
|
|
|
|
- else
|
|
|
|
|
- window.location = '/'
|
|
|
|
|
|
|
+ $.on @cache, 'updateready noupdate error', -> app.reboot()
|
|
|
@notifyUpdate = false
|
|
@notifyUpdate = false
|
|
|
@notifyProgress = true
|
|
@notifyProgress = true
|
|
|
try @cache.update() catch
|
|
try @cache.update() catch
|