Skip to content

Commit 6d69baf

Browse files
committed
Shortened init settings.load() arg using Object.keys(settings.controls) ↞ [auto-sync from https://github.com/adamlui/userscripts]
1 parent cde2ce2 commit 6d69baf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chatgpt-auto-refresh/greasemonkey/chatgpt-auto-refresh.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
220220
// @description:zu *NGOKUPHEPHA* susa ukusetha kabusha ingxoxo yemizuzu eyi-10 + amaphutha enethiwekhi ahlala njalo + Ukuhlolwa kwe-Cloudflare ku-ChatGPT.
221221
// @author Adam Lui
222222
// @namespace https://github.com/adamlui
223-
// @version 2025.1.10
223+
// @version 2025.1.10.1
224224
// @license MIT
225225
// @icon https://assets.chatgptautorefresh.com/images/icons/openai/black/icon48.png?v=f11a0a8
226226
// @icon64 https://assets.chatgptautorefresh.com/images/icons/openai/black/icon64.png?v=f11a0a8
@@ -403,7 +403,7 @@
403403
load(...keys) { keys.flat().forEach(key => config[key] = GM_getValue(`${app.configKeyPrefix}_${key}`, false)) },
404404
save(key, val) { GM_setValue(`${app.configKeyPrefix}_${key}`, val) ; config[key] = val }
405405
}
406-
settings.load('arDisabled', 'notifDisabled', 'refreshInterval', 'toggleHidden')
406+
settings.load(Object.keys(settings.controls))
407407
if (!config.refreshInterval) settings.save('refreshInterval', 30) // init refresh interval to 30 secs if unset
408408

409409
// Define MENU functions

0 commit comments

Comments
 (0)