mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-08 05:32:33 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
3856bd0b87
commit
d1b62c1b3e
2 changed files with 1 additions and 15 deletions
|
|
@ -21,7 +21,6 @@ import (
|
|||
|
||||
"github.com/88250/gulu"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/siyuan-note/logging"
|
||||
"github.com/siyuan-note/siyuan/kernel/model"
|
||||
"github.com/siyuan-note/siyuan/kernel/util"
|
||||
)
|
||||
|
|
@ -177,19 +176,6 @@ func setLocalStorage(c *gin.Context) {
|
|||
ret.Msg = err.Error()
|
||||
return
|
||||
}
|
||||
|
||||
if arg["app"] == nil {
|
||||
logging.LogErrorf("app is nil in setLocalStorage")
|
||||
ret.Code = -1
|
||||
ret.Msg = "arg [app] is nil"
|
||||
return
|
||||
}
|
||||
|
||||
app := arg["app"].(string)
|
||||
evt := util.NewCmdResult("setLocalStorage", 0, util.PushModeBroadcastMainExcludeSelfApp)
|
||||
evt.AppId = app
|
||||
evt.Data = val
|
||||
util.PushEvent(evt)
|
||||
}
|
||||
|
||||
func getLocalStorage(c *gin.Context) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue