From 4429196adc60da319d830309f952f53a974a1fa1 Mon Sep 17 00:00:00 2001 From: Stephen Royal Date: Wed, 6 Dec 2023 14:30:21 -0800 Subject: [PATCH] Don't Throw Sync Error if Sync Disabled --- src/SpecStore.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/SpecStore.ts b/src/SpecStore.ts index b58f79d..35b6a81 100644 --- a/src/SpecStore.ts +++ b/src/SpecStore.ts @@ -222,7 +222,10 @@ export default class SpecStore { const idListsSyncTimerInactive = this.idListsSyncTimerLastActiveTime < Date.now() - Math.max(SYNC_OUTDATED_MAX, this.idListsSyncInterval); - if (!rulesetsSyncTimerInactive && !idListsSyncTimerInactive) { + if ( + (!rulesetsSyncTimerInactive || this.disableRulesetsSync) && + (!idListsSyncTimerInactive || this.disableIdListsSync) + ) { return null; } let message = '';