From edb5ef2217d299d2e0ac2b442187624a177a201c Mon Sep 17 00:00:00 2001 From: ThinLiquid Date: Sat, 21 Oct 2023 03:36:55 +0100 Subject: [PATCH] =?UTF-8?q?[=F0=9F=90=9B]=20Fixed=20fullscreen=20button=20?= =?UTF-8?q?not=20appearing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/wm.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wm.ts b/src/wm.ts index 4119596..a3f9168 100644 --- a/src/wm.ts +++ b/src/wm.ts @@ -88,14 +88,14 @@ export class FlowWindow { this.focus() } - if (config.canResize === undefined) config.canResize = true + if (config.canResize === undefined || config.canResize === null) config.canResize = true this.element.style.width = `${config.width ?? 300}px` this.element.style.height = `${config.height ?? 200}px` this.header = document.createElement('window-header') this.header.innerHTML = `
${config.title}
` - if (!config.canResize) { + if (config.canResize) { this.header.innerHTML = `
${config.title}
` } @@ -105,7 +105,7 @@ export class FlowWindow { (this.header.querySelector('#min') as HTMLElement).onclick = () => this.toggleMin() - if (!config.canResize) { + if (config.canResize) { (this.header.querySelector('#max') as HTMLElement).onclick = () => this.toggleMax() }