mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-29 02:51:20 -08:00
refactor(site): [SITE-CONSOLE-01] restore typed console and lifecycle ownership
This commit is contained in:
1 parent
6cd2d0ffbe
commit
3dba82a453
29 files changed
+1884
-36
No files matched your search
@@ -25,6 +25,9 @@ export async function installEditor(host: EditorHost): Promise<void> {
|
||||
host.consoleLog(output)
|
||||
const controller = new AbortController()
|
||||
const cleanups: (() => void)[] = []
|
||||
cleanups.push(() => {
|
||||
host.consoleLog.unmount?.(output)
|
||||
})
|
||||
const listen = (
|
||||
target: EventTarget,
|
||||
type: string,
|
||||
|
||||
Reference in new issue
Block a user