Skip to content

Commit b4bfebb

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chatgpt/chatgpt-auto-refresh/chatgpt-auto-refresh.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
220220
// @description:zu *NGOKUPHEPHA* susa ukusetha kabusha ingxoxo yemizuzu eyi-10 + amaphutha enethiwekhi ahlala njalo + Ukuhlolwa kwe-Cloudflare ku-ChatGPT.
221221
// @author Adam Lui
222222
// @namespace https://github.com/adamlui
223-
// @version 2025.4.28.2
223+
// @version 2025.4.29
224224
// @license MIT
225225
// @icon https://assets.chatgptautorefresh.com/images/icons/openai/black/icon48.png?v=f11a0a8
226226
// @icon64 https://assets.chatgptautorefresh.com/images/icons/openai/black/icon64.png?v=f11a0a8
@@ -776,7 +776,7 @@
776776

777777
function getScheme() {
778778
return /\b(light|dark)\b/.exec(document.documentElement.className)?.[1]
779-
|| ( window.matchMedia?.('(prefers-color-scheme: dark)')?.matches ? 'dark' : 'light' )
779+
|| ( window.matchMedia?.('(prefers-color-scheme: dark)').matches ? 'dark' : 'light' )
780780
}
781781

782782
function syncConfigToUI(options) {

0 commit comments

Comments
 (0)