Skip to content

Commit

Permalink
Replaced browser flag inits w/ new chatgpt.js methods ↞ [auto-sync fr…
Browse files Browse the repository at this point in the history
…om `adamlui/chatgpt-apps`]
  • Loading branch information
adamlui authored and kudo-sync-bot committed Jul 19, 2024
1 parent e6d6d70 commit 9aee4dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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.19.1
// @version 2024.7.19.2
// @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 @@ -221,10 +221,10 @@
(async () => {

// Init BROWSER FLAGS
const isChrome = !!JSON.stringify(navigator.userAgentData?.brands)?.includes('Chrome'),
const isChrome = chatgpt.browser.isChrome(),
isFirefox = chatgpt.browser.isFirefox(),
isEdge = !!JSON.stringify(navigator.userAgentData?.brands)?.includes('Edge'),
isBrave = !!JSON.stringify(navigator.userAgentData?.brands)?.includes('Brave'),
isEdge = chatgpt.browser.isEdge(),
isBrave = chatgpt.browser.isBrave(),
isMobile = chatgpt.browser.isMobile(),
isPortrait = isMobile && (window.innerWidth < window.innerHeight)

Expand Down

0 comments on commit 9aee4dd

Please sign in to comment.