From e16ba74bd72daecb64103372b85da773551ab205 Mon Sep 17 00:00:00 2001 From: SethBurkart123 Date: Tue, 14 Nov 2023 17:39:27 +1100 Subject: [PATCH] Refactor storedSetting object destructuring in main function --- src/SEQTA.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SEQTA.js b/src/SEQTA.js index f404c675..b3eeff04 100644 --- a/src/SEQTA.js +++ b/src/SEQTA.js @@ -682,7 +682,7 @@ export async function ObserveMenuItemPosition() { } function main(storedSetting) { - const { onoff } = storedSetting; + const onoff = storedSetting.onoff; DarkMode = storedSetting.DarkMode; // Handle undefined onoff setting