Skip to content

Commit 6979118

Browse files
committed
Removed unneeded optional chaining from getScheme() ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/chatgpt-auto-talk]
1 parent b4bfebb commit 6979118

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chatgpt/chatgpt-auto-talk/chatgpt-auto-talk.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
225225
// @description:zu Dlala izimpendulo ze-ChatGPT ngokuzenzakalela
226226
// @author Adam Lui
227227
// @namespace https://github.com/adamlui
228-
// @version 2025.4.28.3
228+
// @version 2025.4.29
229229
// @license MIT
230230
// @icon https://assets.chatgptautotalk.com/images/icons/openai/black/icon48.png?v=9f1ed3c
231231
// @icon64 https://assets.chatgptautotalk.com/images/icons/openai/black/icon64.png?v=9f1ed3c
@@ -731,7 +731,7 @@
731731

732732
function getScheme() {
733733
return /\b(light|dark)\b/.exec(document.documentElement.className)?.[1]
734-
|| ( window.matchMedia?.('(prefers-color-scheme: dark)')?.matches ? 'dark' : 'light' )
734+
|| ( window.matchMedia?.('(prefers-color-scheme: dark)').matches ? 'dark' : 'light' )
735735
}
736736

737737
function syncConfigToUI() {

0 commit comments

Comments
 (0)