Browse Source

:art: 支持关闭 Google Analytics https://github.com/siyuan-note/siyuan/issues/6403

Liang Ding 2 years ago
parent
commit
a198e50594
1 changed files with 1 additions and 1 deletions
  1. 1 1
      kernel/api/system.go

+ 1 - 1
kernel/api/system.go

@@ -312,7 +312,7 @@ func setGoogleAnalytics(c *gin.Context) {
 	}
 
 	googleAnalytics := arg["googleAnalytics"].(bool)
-	model.Conf.System.DisableGoogleAnalytics = googleAnalytics
+	model.Conf.System.DisableGoogleAnalytics = !googleAnalytics
 	model.Conf.Save()
 }