override states aren't undefined

This commit is contained in:
buzz-lightsnack-2007 2024-05-06 14:18:49 +08:00
parent 04bf5e2ba7
commit 95aedb9542

View file

@ -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;
}