fix(Setting.ts): destroyCallback 参数没有被使用 (#12407)

destroyCallback 参数没有被使用,导致传入的 callback 实际上不会起到任何效果。
This commit is contained in:
Frostime 2024-09-08 11:10:29 +08:00 committed by GitHub
parent 42ea06ce07
commit 211704692f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,6 +16,7 @@ export class Setting {
confirmCallback?: () => void
}) {
this.confirmCallback = options.confirmCallback;
this.destroyCallback = options.destroyCallback;
this.width = options.width || (isMobile() ? "92vw" : "768px");
this.height = options.height || "80vh";
}