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 535bd5e commit 20e4c5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions greasemonkey/googlegpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
// @description:zu Yengeza izimpendulo ze-AI ku-Google Search (inikwa amandla yi-Google Gemma + GPT-4o!)
// @author KudoAI
// @namespace https://kudoai.com
// @version 2025.1.11.1
// @version 2025.1.11.2
// @license MIT
// @icon https://assets.googlegpt.io/images/icons/googlegpt/black/icon48.png?v=59409b2
// @icon64 https://assets.googlegpt.io/images/icons/googlegpt/black/icon64.png?v=59409b2
Expand Down Expand Up @@ -576,7 +576,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')
})
},
save(key, val) { GM_setValue(`${app.configKeyPrefix}_${key}`, val) ; config[key] = val }
Expand Down

0 comments on commit 20e4c5c

Please sign in to comment.