From 95aedb9542dc216dc553434981979ca2ce260785 Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Mon, 6 May 2024 14:18:49 +0800 Subject: [PATCH] override states aren't undefined --- scripts/external/watch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/external/watch.js b/scripts/external/watch.js index 259262f..beccb21 100644 --- a/scripts/external/watch.js +++ b/scripts/external/watch.js @@ -16,7 +16,7 @@ export default class watch { */ static async process(filter, options = {}) { document.onreadystatechange = async () => { - if (document.readyState == 'complete' && (await global.read([`settings`, `behavior`, `autoRun`]) || ((typeof options).includes(`object`) && options) ? options[`override`] : false)) { + if (document.readyState == 'complete' && (await global.read([`settings`, `behavior`, `autoRun`]) || ((((typeof options).includes(`object`) && options) ? Object.hasOwn(options, `override`) : false) ? options[`override`] : false))) { new logging((new texts(`scrape_msg_ready`)).localized); this.processed = (((options && typeof options == `object`) ? options[`override`] : false) || this.processed == null) ? new processor(filter) : this.processed; }