Skip to content

Commit

Permalink
Moved xhr init to top for improved structure ↞ [auto-sync from http…
Browse files Browse the repository at this point in the history
  • Loading branch information
kudo-sync-bot committed Nov 23, 2024
1 parent aa85361 commit 27e62bc
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.11.22.3
// @version 2024.11.22.4
// @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 @@ -231,6 +231,7 @@
['Chrome', 'Firefox', 'Edge', 'Brave', 'Mobile'].forEach(platform =>
env.browser[`is${ platform == 'Firefox' ? 'FF' : platform }`] = chatgpt.browser['is' + platform]())
env.browser.isPortrait = env.browser.isMobile && (window.innerWidth < window.innerHeight)
const xhr = env.scriptManager.name == 'OrangeMonkey' ? GM_xmlhttpRequest : GM.xmlHttpRequest

// Init APP data
const app = {
Expand Down Expand Up @@ -402,7 +403,6 @@

// Init app MESSAGES
log.debug('Initializing app messages...')
const xhr = env.scriptManager.name == 'OrangeMonkey' ? GM_xmlhttpRequest : GM.xmlHttpRequest
app.msgs = {
appDesc: 'Adds ChatGPT answers to DuckDuckGo sidebar (powered by GPT-4o!)',
menuLabel_proxyAPImode: 'Proxy API Mode',
Expand Down

0 comments on commit 27e62bc

Please sign in to comment.