mirror of
https://github.com/siyuan-note/siyuan
synced 2026-04-21 13:37:52 +00:00
This commit is contained in:
parent
e53670fb47
commit
99feef9d48
1 changed files with 3 additions and 1 deletions
|
|
@ -55,7 +55,9 @@ export class Model {
|
|||
}
|
||||
};
|
||||
ws.onmessage = (event) => {
|
||||
if (options.msgCallback) {
|
||||
if (options.msgCallback &&
|
||||
// 等待 config 加载完成才接受推送 https://github.com/siyuan-note/siyuan/issues/17508
|
||||
window.siyuan.config) {
|
||||
const data = processMessage(JSON.parse(event.data));
|
||||
options.msgCallback.call(this, data);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue