Skip to content

Commit

Permalink
Added chatgpt.browser.isChrome() ↞ [auto-sync from `KudoAI/chatgpt.…
Browse files Browse the repository at this point in the history
…js`]
  • Loading branch information
adamlui authored and kudo-sync-bot committed Jun 23, 2024
1 parent f5e4374 commit 9822d45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions starters/chrome/extension/lib/chatgpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ const chatgpt = { // eslint-disable-line no-redeclare
isLightMode: function() { return window.matchMedia?.('(prefers-color-scheme: light)')?.matches; },
isDarkMode: function() { return window.matchMedia?.('(prefers-color-scheme: dark)')?.matches; },
isChromium: function() { return navigator.userAgent.includes('Chrome'); },
isChrome: function() { return !!JSON.stringify(navigator.userAgentData?.brands)?.includes('Chrome'); },
isEdge: function() { return navigator.userAgent.includes('Edg'); },
isFirefox: function() { return navigator.userAgent.includes('Firefox'); },

Expand Down

0 comments on commit 9822d45

Please sign in to comment.