Skip to content

Commit

Permalink
Renamed styledState in notify() to styledStateSpan for readabil…
Browse files Browse the repository at this point in the history
…ity ↞ [auto-sync from `adamlui/ai-web-extensions/autoclear-chatgpt-history`]
  • Loading branch information
kudo-sync-bot committed Nov 14, 2024
1 parent 80554cc commit 02888e9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
// @description:zu Ziba itshala lokucabanga okuzoshintshwa ngokuzenzakalelayo uma ukubuka chatgpt.com
// @author Adam Lui
// @namespace https://github.com/adamlui
// @version 2024.10.20.2
// @version 2024.11.14
// @license MIT
// @icon https://media.autoclearchatgpt.com/images/icons/openai/black/icon48.png?a8868ef
// @icon64 https://media.autoclearchatgpt.com/images/icons/openai/black/icon64.png?a8868ef
Expand Down Expand Up @@ -476,11 +476,11 @@

// Append styled state word
if (foundState) {
const styledState = document.createElement('span')
styledState.style.cssText = `color: ${
const styledStateSpan = document.createElement('span')
styledStateSpan.style.cssText = `color: ${
foundState == menu.state.words[0] ? '#ef4848 ; text-shadow: rgba(255, 169, 225, 0.44) 2px 1px 5px'
: '#5cef48 ; text-shadow: rgba(255, 250, 169, 0.38) 2px 1px 5px' }`
styledState.append(foundState) ; notif.append(styledState)
styledStateSpan.append(foundState) ; notif.append(styledStateSpan)
}
}

Expand Down

0 comments on commit 02888e9

Please sign in to comment.