From b3b6522f522ecd44e3df2aa3b30c6cc3031723fd Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Fri, 17 May 2024 16:19:22 +0800 Subject: [PATCH] add manual mode for windowman --- scripts/GUI/builder/windowman.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/GUI/builder/windowman.js b/scripts/GUI/builder/windowman.js index fab7424..b182c64 100644 --- a/scripts/GUI/builder/windowman.js +++ b/scripts/GUI/builder/windowman.js @@ -74,8 +74,9 @@ export default class windowman { // Add the headers. this[`headers`] = headers(((this[`options`] && (typeof this[`options`]).includes(`obj`)) ? this[`options`][`headers`] : false) ? this[`options`][`headers`] : null); - headers(((OPTIONS != null && typeof OPTIONS == `object`) ? OPTIONS[`headers`] : false) ? OPTIONS[`headers`] : null); + if (((this[`options`] && (typeof this[`options`]).includes(`obj`)) ? Object.hasOwn(this[`options`], `automatic`) : false) ? this[`options`][`automatic`] : true) { this.design(); + }; } /*