From 7572db4012843b3befa2b04477ac92fc05f837e0 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 14 May 2023 12:10:47 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/8216 --- app/src/protyle/index.ts | 2 +- kernel/util/websocket.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/protyle/index.ts b/app/src/protyle/index.ts index 752f6011e..74f63193b 100644 --- a/app/src/protyle/index.ts +++ b/app/src/protyle/index.ts @@ -94,7 +94,7 @@ export class Protyle { reloadProtyle(this.protyle, false); } break; - case "addLoadding": + case "addLoading": if (data.data === this.protyle.block.rootID) { addLoading(this.protyle, data.msg); } diff --git a/kernel/util/websocket.go b/kernel/util/websocket.go index bd95726ef..68dfdaac9 100644 --- a/kernel/util/websocket.go +++ b/kernel/util/websocket.go @@ -219,7 +219,7 @@ func PushProtyleReload(rootID string) { } func PushProtyleLoading(rootID, msg string) { - BroadcastByType("protyle", "addLoadding", 0, msg, rootID) + BroadcastByType("protyle", "addLoading", 0, msg, rootID) } func PushDownloadProgress(id string, percent float32) {