Skip to content

Commit ec27bcc

Browse files
committed
Corrected state logic in toggle notifs, deleted test log ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/chatgpt-auto-refresh]
1 parent 99fead7 commit ec27bcc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 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.4.1.1
223+
// @version 2025.4.1.2
224224
// @license MIT
225225
// @icon https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-refresh@f11a0a8/assets/images/icons/openai/black/icon48.png
226226
// @icon64 https://cdn.jsdelivr.net/gh/adamlui/chatgpt-auto-refresh@f11a0a8/assets/images/icons/openai/black/icon64.png
@@ -418,7 +418,6 @@
418418
save(key, val) { GM_setValue(`${app.configKeyPrefix}_${key}`, val) ; config[key] = val }
419419
}
420420
settings.load(Object.keys(settings.controls))
421-
console.log(config)
422421
if (!config.refreshInterval) settings.save('refreshInterval', 30) // init refresh interval to 30 secs if unset
423422

424423
// Define MENU functions
@@ -451,8 +450,7 @@
451450
return GM_registerMenuCommand(menuLabel, () => {
452451
if (ctrlType == 'toggle') {
453452
settings.save(key, !config[key])
454-
notify(`${settings.controls[key].label}: ${
455-
this.state.words[+(config[key] ^ /disabled/i.test(key))]}`)
453+
notify(`${settings.controls[key].label}: ${this.state.words[+settings.isEnabled(key)]}`)
456454
} else { // Refresh Interval prompt
457455
while (true) {
458456
const refreshInterval = prompt(

0 commit comments

Comments
 (0)