瀏覽代碼

Fix app.reset when db hasn't been initialized

Thibaut 10 年之前
父節點
當前提交
5be260f3dc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      assets/javascripts/app/app.coffee

+ 1 - 1
assets/javascripts/app/app.coffee

@@ -126,7 +126,7 @@
   reset: ->
     @store.clear()
     @settings.reset()
-    @db.reset()
+    @db?.reset()
     @appCache?.update()
     window.location = '/'
     return