浏览代码

Force IDB schema upgrade before installing/uninstalling all docs

Thibaut Courouble 9 年之前
父节点
当前提交
39cc1d3cba
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      assets/javascripts/views/content/offline_page.coffee

+ 1 - 0
assets/javascripts/views/content/offline_page.coffee

@@ -58,6 +58,7 @@ class app.views.OfflinePage extends app.View
       link.parentNode.innerHTML = "#{link.textContent.replace(/e$/, '')}ing…"
     else if action = link.getAttribute('data-action-all')
       $.stopEvent(event)
+      app.db.migrate()
       el.click() for el in @findAll("a[data-action='#{action}']")
     return