Skip to content

Commit

Permalink
🎨 Improve dynamic anchor text auto-refresh stability #8234
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Sep 6, 2024
1 parent 7879c7a commit 57f95b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/util/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 57f95b1

Please sign in to comment.