From 57f95b1d592939baec5bfae03da84515630ceb13 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Fri, 6 Sep 2024 11:46:32 +0800 Subject: [PATCH] :art: Improve dynamic anchor text auto-refresh stability https://github.com/siyuan-note/siyuan/issues/8234 --- kernel/util/websocket.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/util/websocket.go b/kernel/util/websocket.go index dbf3caab8..ed4273815 100644 --- a/kernel/util/websocket.go +++ b/kernel/util/websocket.go @@ -259,11 +259,11 @@ func PushProtyleReload(rootID string) { } func PushSetRefDynamicText(rootID, blockID, defBlockID, refText string) { - BroadcastByType("protyle", "setRefDynamicText", 0, "", map[string]interface{}{"rootID": rootID, "blockID": blockID, "defBlockID": defBlockID, "refText": refText}) + BroadcastByType("main", "setRefDynamicText", 0, "", map[string]interface{}{"rootID": rootID, "blockID": blockID, "defBlockID": defBlockID, "refText": refText}) } func PushSetDefRefCount(rootID, blockID string, refCount int) { - BroadcastByType("protyle", "setDefRefCount", 0, "", map[string]interface{}{"rootID": rootID, "blockID": blockID, "refCount": refCount}) + BroadcastByType("main", "setDefRefCount", 0, "", map[string]interface{}{"rootID": rootID, "blockID": blockID, "refCount": refCount}) } func PushProtyleLoading(rootID, msg string) {