Skip to content

Commit

Permalink
Corrected alert selector in toggle.streaming() ↞ [auto-sync from `a…
Browse files Browse the repository at this point in the history
…damlui/chatgpt-apps`]
  • Loading branch information
adamlui authored and kudo-sync-bot committed Jul 17, 2024
1 parent 27a3223 commit 21d478d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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.16
// @version 2024.7.16.1
// @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 @@ -2127,7 +2127,7 @@
const switchPhrase = msgs.alert_switchingOn || 'switching on'
msg = msg.replace(switchPhrase, `<a class="alert-link" href="#">${switchPhrase}</a>`)
const alertID = siteAlert(`${ msgs.mode_streaming || 'Streaming Mode' } ${ msgs.alert_unavailable || 'unavailable' }`, msg),
alert = document.getElementById(alertID.firstChild)
alert = document.getElementById(alertID).firstChild
modals.init(alert) // add classes/stars, disable wheel-scrolling, dim bg, glowup btns
alert.querySelector('[href="#"]').onclick = () => { alert.querySelector('.modal-close-btn').click() ; toggle.proxyMode() }
if (streamingToggle && streamingToggle.checked == config.streamingDisabled) // revert Settings auto-toggle
Expand Down

0 comments on commit 21d478d

Please sign in to comment.