Skip to content

Commit

Permalink
Replaced || w/ ?? in settings.load() for proper nullish val han…
Browse files Browse the repository at this point in the history
  • Loading branch information
kudo-sync-bot committed Jan 12, 2025
1 parent 5e8dd1b commit 0d84b86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chatgpt/chatgpt-auto-refresh/chatgpt-auto-refresh.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@
// @description:zu *NGOKUPHEPHA* susa ukusetha kabusha ingxoxo yemizuzu eyi-10 + amaphutha enethiwekhi ahlala njalo + Ukuhlolwa kwe-Cloudflare ku-ChatGPT.
// @author Adam Lui
// @namespace https://github.com/adamlui
// @version 2025.1.11
// @version 2025.1.11.1
// @license MIT
// @icon https://assets.chatgptautorefresh.com/images/icons/openai/black/icon48.png?v=f11a0a8
// @icon64 https://assets.chatgptautorefresh.com/images/icons/openai/black/icon64.png?v=f11a0a8
Expand Down Expand Up @@ -403,7 +403,7 @@
load(...keys) {
keys.flat().forEach(key => {
config[key] = GM_getValue(`${app.configKeyPrefix}_${key}`,
this.controls[key]?.defaultVal || this.controls[key]?.type == 'toggle')
this.controls[key]?.defaultVal ?? this.controls[key]?.type == 'toggle')
})
},

Expand Down

0 comments on commit 0d84b86

Please sign in to comment.