From 0bb3f1c757869e0a393df002b15229f9d3b3baf3 Mon Sep 17 00:00:00 2001 From: ThinLiquid Date: Fri, 8 Dec 2023 11:44:29 +0000 Subject: [PATCH] =?UTF-8?q?[=E2=9C=94=EF=B8=8F]=20Follow=20ts-standard=20a?= =?UTF-8?q?gain...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/structures/FlowWindow.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/structures/FlowWindow.ts b/src/structures/FlowWindow.ts index f43672f..7c4b13e 100644 --- a/src/structures/FlowWindow.ts +++ b/src/structures/FlowWindow.ts @@ -106,9 +106,7 @@ class FlowWindow { if (config.canResize === undefined || config.canResize === null) config.canResize = true - if (config.canResize === false) { - this.element.style.resize = 'none' - } + if (!config.canResize) this.element.style.resize = 'none' this.element.style.width = `${config.width ?? 300}px` this.element.style.height = `${config.height ?? 200}px`