Skip to content

Commit

Permalink
Merged one-off update.stars() into update.scheme() ↞ [auto-sync f…
Browse files Browse the repository at this point in the history
…rom `adamlui/chatgpt-apps`]
  • Loading branch information
adamlui authored and kudo-sync-bot committed Jul 1, 2024
1 parent 420cb28 commit c38bb64
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions greasemonkey/duckduckgpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
// @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!)
// @author KudoAI
// @namespace https://kudoai.com
// @version 2024.7.1.8
// @version 2024.7.1.9
// @license MIT
// @icon https://media.ddgpt.com/images/icons/duckduckgpt/icon48.png?af89302
// @icon64 https://media.ddgpt.com/images/icons/duckduckgpt/icon64.png?af89302
Expand Down Expand Up @@ -1301,11 +1301,12 @@
)
},

scheme(newScheme) { scheme = newScheme ; update.appLogoSrc() ; update.appStyle() ; update.stars() },

stars() { // for handleSchemeChange() + modals.scheme.show()'s update.scheme()
scheme(newScheme) {
scheme = newScheme ; update.appLogoSrc() ; update.appStyle();

// Update starry bg
['sm', 'med', 'lg'].forEach(size => appDiv.querySelector(
`[id$="stars-${size}"]`).id = `${scheme == 'dark' ? 'white' : 'black' }-stars-${size}`)
`[id$="stars-${size}"]`).id = `${ newScheme == 'dark' ? 'white' : 'black' }-stars-${size}`)
},

titleAnchor() {
Expand Down

0 comments on commit c38bb64

Please sign in to comment.