From 211704692f42c7cbbfe0e7cbbf1d45ffd4a5ae8d Mon Sep 17 00:00:00 2001 From: Frostime Date: Sun, 8 Sep 2024 11:10:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(Setting.ts):=20destroyCallback=20=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E6=B2=A1=E6=9C=89=E8=A2=AB=E4=BD=BF=E7=94=A8=20(#1240?= =?UTF-8?q?7)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit destroyCallback 参数没有被使用,导致传入的 callback 实际上不会起到任何效果。 --- app/src/plugin/Setting.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/plugin/Setting.ts b/app/src/plugin/Setting.ts index 3225c9285..2428bb77a 100644 --- a/app/src/plugin/Setting.ts +++ b/app/src/plugin/Setting.ts @@ -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"; }