Skip to content

Commit

Permalink
Moved config init before settings for readability ↞ [auto-sync fr…
Browse files Browse the repository at this point in the history
…om `adamlui/chatgpt-apps`]
  • Loading branch information
adamlui authored and kudo-sync-bot committed Sep 18, 2024
1 parent 9b864de commit 175c1f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 2024.9.18
// @version 2024.9.18.1
// @license MIT
// @icon https://media.googlegpt.io/images/icons/googlegpt/black/icon48.png?8652a6e
// @icon64 https://media.googlegpt.io/images/icons/googlegpt/black/icon64.png?8652a6e
Expand Down Expand Up @@ -433,10 +433,10 @@
env.browser.isPortrait = env.browser.isMobile && (window.innerWidth < window.innerHeight)

// Init DEBUG mode
const settings = {
const config = {}, settings = {
load(...keys) { keys.forEach(key => config[key] = GM_getValue(app.configKeyPrefix + '_' + key, false)) },
save(key, value) { GM_setValue(app.configKeyPrefix + '_' + key, value) ; config[key] = value }
}, config = {} ; settings.load('debugMode')
} ; settings.load('debugMode')

// Define LOG props/functions
const log = {
Expand Down

0 comments on commit 175c1f7

Please sign in to comment.