Skip to content

Commit

Permalink
Booleanized browser flags for expected conditionals ↞ [auto-sync from…
Browse files Browse the repository at this point in the history
… `adamlui/chatgpt-apps/duckduckgpt`]
  • Loading branch information
adamlui authored and kudo-sync-bot committed Jun 23, 2024
1 parent bc70ab3 commit 39f9c92
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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 2024.6.22.3
// @version 2024.6.23
// @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 @@ -211,10 +211,10 @@
(async () => {

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

// Init CONFIG
Expand Down

0 comments on commit 39f9c92

Please sign in to comment.