Skip to content

Commit

Permalink
Removed unneeded boolean conversion ↞ [auto-sync from `adamlui/chatgp…
Browse files Browse the repository at this point in the history
…t-widescreen`]
  • Loading branch information
kudo-sync-bot committed Nov 14, 2024
1 parent 066e0d5 commit c4bd77a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chatgpt/chatgpt-widescreen/chatgpt-widescreen-mode.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
// @description:zu Engeza izinhlobo zezimodi ze-Widescreen + Fullscreen ku-ChatGPT ukuze kube nokubonakala + ukuncitsha ukusukela
// @author Adam Lui
// @namespace https://github.com/adamlui
// @version 2024.11.12
// @version 2024.11.13
// @license MIT
// @compatible chrome
// @compatible firefox
Expand Down Expand Up @@ -1116,7 +1116,7 @@
nodeObserver.observe(document.querySelector(env.site == 'poe' ? 'head' : 'body'), { attributes: true, subtree: true })

// Monitor SIDEBAR to update full-window setting
if (sites[env.site].selectors.btns.sidebarToggle && !!sites[env.site].hasSidebar) {
if (sites[env.site].selectors.btns.sidebarToggle && sites[env.site].hasSidebar) {
const sidebarObserver = new MutationObserver(async () => {
await new Promise(resolve => setTimeout(resolve, env.site == 'perplexity' ? 500 : 0))
if ((config.fullWindow ^ isFullWin()) && !config.modeSynced) sync.mode('fullWindow')
Expand Down

0 comments on commit c4bd77a

Please sign in to comment.