History

Fix AppCache#reload

Thibaut Courouble committed 9 years ago

Commit 15da3111 parent 3b5eec71 file · +1 −2Browse files

Unified · Split

assets/javascripts/app/appcache.coffee+1−2
@@ -28,10 +28,9 @@ class app.AppCache · 27 unmodified lines
28 28
29 reload: ->29 reload: ->
30 $.on @cache, 'updateready noupdate error', -> window.location = '/'30 $.on @cache, 'updateready noupdate error', -> window.location = '/'
31 @updateInBackground()
32 @notifyUpdate = false31 @notifyUpdate = false
33 @notifyProgress = true32 @notifyProgress = true
34 @cache.update()33 try @cache.update() catch
35 return34 return
36 35
37 onProgress: (event) =>36 onProgress: (event) =>