Skip to content

Commit

Permalink
Corrected dom.getLoadedElem() refs ↞ [auto-sync from https://github…
Browse files Browse the repository at this point in the history
  • Loading branch information
kudo-sync-bot committed Dec 26, 2024
1 parent 1381423 commit a580c6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 Yengeza Isikrini Esibanzi + Izindlela Zesikrini Esigcwele ku-chatgpt.com + perplexity.ai + poe.com ukuze uthole ukubuka okuthuthukisiwe + okuncishisiwe ukuskrola
// @author Adam Lui
// @namespace https://github.com/adamlui
// @version 2024.12.26.3
// @version 2024.12.26.4
// @license MIT
// @icon https://media.chatgptwidescreen.com/images/icons/widescreen-robot-emoji/icon48.png?9a393be
// @icon64 https://media.chatgptwidescreen.com/images/icons/widescreen-robot-emoji/icon64.png?9a393be
Expand Down Expand Up @@ -709,8 +709,8 @@
// Init UI props
if (/chatgpt|openai/.test(env.site)) {
sites[env.site].hasSidebar = !!await Promise.race([
dom.getLoadedElement(sites.chatgpt.selectors.btns.sidebarToggle), // DOM element if sidebar toggle loads
dom.getLoadedElement(sites.chatgpt.selectors.btns.login).then(() => false), // null if login button loads
dom.getLoadedElem(sites.chatgpt.selectors.btns.sidebarToggle), // DOM element if sidebar toggle loads
dom.getLoadedElem(sites.chatgpt.selectors.btns.login).then(() => false), // null if login button loads
new Promise(resolve => setTimeout(() => resolve(null), 3000)) // null if 3s passed
])
}
Expand Down

0 comments on commit a580c6a

Please sign in to comment.