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`