mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-25 17:56:09 +01:00
This commit is contained in:
parent
4f928dc579
commit
b63cc1839a
3 changed files with 6 additions and 2 deletions
|
|
@ -8,6 +8,9 @@ export class EventBus<DetailType = any> {
|
|||
}
|
||||
|
||||
on(type: TEventBus, listener: (event: CustomEvent<DetailType>) => void) {
|
||||
if (type ==="loaded-protyle") {
|
||||
console.warn("0.8.8 将移除 loaded-protyle, 请使用 loaded-protyle-static 进行替代");
|
||||
}
|
||||
this.eventTarget.addEventListener(type, listener);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue