Skip to content

Commit 4496b19

Browse files
committed
Updated chatbar.is.dark() to work again
1 parent 7d93ebd commit 4496b19

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

chatgpt-widescreen/chromium/extension/lib/chatbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ window.chatbar = {
1313
async dark() { // requires env.site
1414
return env.site == 'poe' ? undefined
1515
: getComputedStyle(await chatbar.get() || document.documentElement)
16-
.backgroundColor == 'rgb(33, 33, 33)'
16+
.backgroundColor == 'rgba(0, 0, 0, 0)'
1717
},
1818

1919
async tall() { return (await chatbar.get())?.getBoundingClientRect().height > 60 }

chatgpt-widescreen/firefox/extension/lib/chatbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ window.chatbar = {
1313
async dark() { // requires env.site
1414
return env.site == 'poe' ? undefined
1515
: getComputedStyle(await chatbar.get() || document.documentElement)
16-
.backgroundColor == 'rgb(33, 33, 33)'
16+
.backgroundColor == 'rgba(0, 0, 0, 0)'
1717
},
1818

1919
async tall() { return (await chatbar.get())?.getBoundingClientRect().height > 60 }

0 commit comments

Comments
 (0)