Skip to content

Commit

Permalink
Added section comment to toggle.sidebar() for readabillity ↞ [auto-…
Browse files Browse the repository at this point in the history
  • Loading branch information
kudo-sync-bot committed Jan 3, 2025
1 parent cff18c2 commit 0754632
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chatgpt/googlegpt/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.3.10
// @version 2025.1.3.11
// @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 @@ -3212,6 +3212,7 @@
const configKeyName = mode + 'Sidebar',
prevStickyState = config.stickySidebar // for hiding notif if no change from Pin menu 'Sidebar' click

// Save new state + disable incompatible modes
if (state == 'on' || !state && !config[configKeyName]) { // toggle on
if (mode == 'sticky' && config.anchored) toggle.anchorMode()
settings.save(configKeyName, true)
Expand Down

0 comments on commit 0754632

Please sign in to comment.