Vanessa 2023-04-28 10:30:27 +08:00
parent 9edcd3f3a7
commit 9cb6e9ec25
10 changed files with 198 additions and 118 deletions

View file

@ -33,6 +33,7 @@ import {escapeHtml} from "../util/escape";
import {isWindow} from "../util/functions";
import {hideAllElements} from "../protyle/ui/hideElements";
import {focusByOffset, getSelectionOffset} from "../protyle/util/selection";
import {Custom} from "./dock/Custom";
export class Wnd {
public id: string;
@ -646,6 +647,9 @@ export class Wnd {
model.pdfObject.pdfLoadingTask.destroy();
}
}
if (model instanceof Custom) {
model.destroy();
}
model.send("closews", {});
}