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/chatgpt-auto-talk`]
  • Loading branch information
kudo-sync-bot committed Nov 14, 2024
1 parent c4bd77a commit d1c80e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chatgpt/chatgpt-auto-talk/chatgpt-auto-talk.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
// @description:zu Dlala izimpendulo ze-ChatGPT ngokuzenzakalela
// @author Adam Lui
// @namespace https://github.com/adamlui
// @version 2024.10.20.1
// @version 2024.11.14
// @license MIT
// @icon https://assets.chatgptautotalk.com/images/icons/openai/black/icon48.png?v=9f1ed3c
// @icon64 https://assets.chatgptautotalk.com/images/icons/openai/black/icon64.png?v=9f1ed3c
Expand Down Expand Up @@ -463,11 +463,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 d1c80e1

Please sign in to comment.