refactor(build): use env flags to control feature gate

This commit is contained in:
Andelf
2022-06-28 12:20:44 +08:00
parent e92af35954
commit fb92e64967
5 changed files with 30 additions and 3 deletions

View File

@@ -619,7 +619,7 @@
(when (and util/mac? (util/electron?)) (app-auto-update-row t))
(usage-diagnostics-row t instrument-disabled?)
(when-not (mobile-util/native-platform?) (developer-mode-row t developer-mode?))
(when (util/electron?) (plugin-system-switcher-row))
(when (and (util/electron?) config/enable-plugins?) (plugin-system-switcher-row))
(flashcards-switcher-row enable-flashcards?)
(when (util/electron?) (https-user-agent-row https-agent-opts))
(clear-cache-row t)