소스 검색

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