Skip to content

Commit

Permalink
fix: page blank after clearing cache
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed May 23, 2021
1 parent 52ef58b commit 13e62b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/electron/electron/handler.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
(defn clear-cache!
[]
(let [path (.getPath ^object app "userData")]
(doseq [dir ["search" "IndexedDB" "Local Storage" "databases" "cache"]]
(doseq [dir ["search" "IndexedDB"]]
(let [path (path/join path dir)]
(try
(fs-extra/removeSync path)
Expand Down
3 changes: 1 addition & 2 deletions src/main/frontend/components/settings.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,7 @@
[:div.mt-1.sm:mt-0.sm:col-span-2
[:div.max-w-lg.rounded-md.sm:max-w-xs
(ui/button (t :settings-page/clear)
:on-click (fn []
(handler/clear-cache!)))]]]]
:on-click handler/clear-cache!)]]]]

[:div.panel-wrap
[:div.it.app-updater.sm:grid.sm:grid-cols-3.sm:gap-4.sm:items-start
Expand Down

0 comments on commit 13e62b9

Please sign in to comment.