mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-04 03:40:15 +01:00
🎨 Enable or disable all CSS and JS code snippets https://github.com/siyuan-note/siyuan/issues/9860
This commit is contained in:
parent
5bf45bfde2
commit
81780c81c8
3 changed files with 18 additions and 1 deletions
|
|
@ -80,6 +80,7 @@ type AppConf struct {
|
|||
OpenHelp bool `json:"openHelp"` // 启动后是否需要打开用户指南
|
||||
ShowChangelog bool `json:"showChangelog"` // 是否显示版本更新日志
|
||||
CloudRegion int `json:"cloudRegion"` // 云端区域,0:中国大陆,1:北美
|
||||
Snippet *conf.Snpt `json:"snippet"` // 代码片段
|
||||
|
||||
m *sync.Mutex
|
||||
}
|
||||
|
|
@ -300,6 +301,10 @@ func InitConf() {
|
|||
Conf.System.Name = util.GetDeviceName()
|
||||
}
|
||||
|
||||
if nil == Conf.Snippet {
|
||||
Conf.Snippet = conf.NewSnpt()
|
||||
}
|
||||
|
||||
Conf.System.AppDir = util.WorkingDir
|
||||
Conf.System.ConfDir = util.ConfDir
|
||||
Conf.System.HomeDir = util.HomeDir
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue