Skip to content

Commit

Permalink
Moved scLink init inside env.scriptManager.supportsStreaming bloc…
Browse files Browse the repository at this point in the history
…k in `toggle.streaming()` ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/duckduckgpt]
  • Loading branch information
kudo-sync-bot committed Jan 14, 2025
1 parent faaab57 commit a2587c3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions chatgpt/duckduckgpt/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 2025.1.14.5
// @version 2025.1.14.6
// @license MIT
// @icon https://assets.ddgpt.com/images/icons/duckduckgpt/icon48.png?v=06af076
// @icon64 https://assets.ddgpt.com/images/icons/duckduckgpt/icon64.png?v=06af076
Expand Down Expand Up @@ -2894,13 +2894,13 @@
},

streaming() {
const scLink = (
env.browser.isFF ?
'https://addons.mozilla.org/firefox/addon/scriptcat/'
: env.browser.isEdge ?
'https://microsoftedge.microsoft.com/addons/detail/scriptcat/liilgpjgabokdklappibcjfablkpcekh'
: 'https://chromewebstore.google.com/detail/scriptcat/ndcooeababalnlpkfedmmbbbgkljhpjf' )
if (!env.scriptManager.supportsStreaming) { // alert userscript manager unsupported, suggest TM/SC
const scLink = (
env.browser.isFF ?
'https://addons.mozilla.org/firefox/addon/scriptcat/'
: env.browser.isEdge ?
'https://microsoftedge.microsoft.com/addons/detail/scriptcat/liilgpjgabokdklappibcjfablkpcekh'
: 'https://chromewebstore.google.com/detail/scriptcat/ndcooeababalnlpkfedmmbbbgkljhpjf' )
modals.alert(
`${settings.controls.streamingDisabled.label} ${app.msgs.alert_unavailable}`,
`${settings.controls.streamingDisabled.label} ${app.msgs.alert_isOnlyAvailFor}`
Expand Down

0 comments on commit a2587c3

Please sign in to comment.