File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed
Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change 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?)
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
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? ])
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'
Original file line number Diff line number Diff line change 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? ))
You can’t perform that action at this time.
0 commit comments