Przeglądaj źródła

fix: disable plugins on the Web

Tienson Qin 4 lat temu
rodzic
commit
995fba8623
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      src/main/frontend/components/header.cljs
  2. 1 1
      templates/config.edn

+ 1 - 1
src/main/frontend/components/header.cljs

@@ -113,7 +113,7 @@
           :options {:on-click state/open-settings!}
           :icon svg/settings-sm})
 
-       (when developer-mode?
+       (when (and developer-mode? (util/electron?))
          {:title (t :plugins)
           :options {:href (rfe/href :plugins)}})
 

+ 1 - 1
templates/config.edn

@@ -160,7 +160,7 @@
  ;; If we set the level's value to 3, `b` will be opened and `c` will be collapsed.
  :ref/default-open-blocks-level 2
 
- :ref/linked-references-collapsed-threshold 100
+ :ref/linked-references-collapsed-threshold 50
 
  ;; any number between 0 and 1 (the greater it is the faster the changes of the next-interval of card reviews) (default 0.5)
  ;; :srs/learning-fraction 0.5