瀏覽代碼

:art: Improve dynamic anchor text auto-refresh stability https://github.com/siyuan-note/siyuan/issues/8234

Daniel 11 月之前
父節點
當前提交
57f95b1d59
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      kernel/util/websocket.go

+ 2 - 2
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) {