Skip to content

Commit 875e1b6

Browse files
committed
chore: no need to check indexeddb support anymore
1 parent 955baaf commit 875e1b6

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/main/frontend/components/container.cljs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
(when-let [el (gdom/getElement "main-content-container")]
6363
(dnd/unsubscribe! el :upload-files))
6464
state)}
65-
[{:keys [route-match margin-less-pages? route-name indexeddb-support? db-restoring? main-content]}]
65+
[{:keys [route-match margin-less-pages? route-name db-restoring? main-content]}]
6666
(let [left-sidebar-open? (state/sub :ui/left-sidebar-open?)
6767
onboarding-and-home? (and (or (nil? (state/get-current-repo)) (config/demo-graph?))
6868
(not config/publishing?)
@@ -89,9 +89,6 @@
8989
(footer/footer)
9090

9191
(cond
92-
(not indexeddb-support?)
93-
nil
94-
9592
db-restoring?
9693
(if config/publishing?
9794
[:div.space-y-2
@@ -423,7 +420,6 @@
423420
margin-less-pages? (or (boolean (#{:graph} route-name))
424421
(db-model/whiteboard-page? (state/get-current-page)))
425422
db-restoring? (state/sub :db/restoring?)
426-
indexeddb-support? (state/sub :indexeddb/support?)
427423
page? (= :page route-name)
428424
home? (= :home route-name)
429425
native-titlebar? (state/sub [:electron/user-cfgs :window/native-titlebar?])
@@ -497,7 +493,6 @@
497493
:logged? logged?
498494
:home? home?
499495
:route-name route-name
500-
:indexeddb-support? indexeddb-support?
501496
:light? light?
502497
:db-restoring? db-restoring?
503498
:main-content main-content'

src/main/frontend/state.cljs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
;; TODO: how to detect the network reliably?
8686
;; NOTE: prefer to use flows/network-online-event-flow
8787
:network/online? true
88-
:indexeddb/support? true
8988
:me nil
9089
:git/current-repo current-graph
9190
:draw? false
@@ -1541,10 +1540,6 @@ Similar to re-frame subscriptions"
15411540
[value]
15421541
(set-state! :db/restoring? value))
15431542

1544-
(defn set-indexedb-support!
1545-
[value]
1546-
(set-state! :indexeddb/support? value))
1547-
15481543
(defn modal-opened?
15491544
[]
15501545
(shui-dialog/has-modal?))

0 commit comments

Comments
 (0)