mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🔥 Completely remove Google Analytics https://github.com/siyuan-note/siyuan/issues/15096
This commit is contained in:
parent
3631b729ad
commit
3319ffbb18
28 changed files with 91 additions and 9172 deletions
|
|
@ -693,20 +693,6 @@ func setNetworkServe(c *gin.Context) {
|
|||
time.Sleep(time.Second * 3)
|
||||
}
|
||||
|
||||
func setGoogleAnalytics(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
arg, ok := util.JsonArg(c, ret)
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
|
||||
googleAnalytics := arg["googleAnalytics"].(bool)
|
||||
model.Conf.System.DisableGoogleAnalytics = !googleAnalytics
|
||||
model.Conf.Save()
|
||||
}
|
||||
|
||||
func setAutoLaunch(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue