From a580c6aa486f72a293d4ca757f8ae44f6d62df08 Mon Sep 17 00:00:00 2001 From: kudo-sync-bot Date: Thu, 26 Dec 2024 05:53:55 -0800 Subject: [PATCH] =?UTF-8?q?Corrected=20`dom.getLoadedElem()`=20refs=20?= =?UTF-8?q?=E2=86=9E=20[auto-sync=20from=20https://github.com/adamlui/ai-w?= =?UTF-8?q?eb-extensions]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chatgpt/chatgpt-widescreen/chatgpt-widescreen-mode.user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chatgpt/chatgpt-widescreen/chatgpt-widescreen-mode.user.js b/chatgpt/chatgpt-widescreen/chatgpt-widescreen-mode.user.js index 306bcf3f6..c858c724d 100644 --- a/chatgpt/chatgpt-widescreen/chatgpt-widescreen-mode.user.js +++ b/chatgpt/chatgpt-widescreen/chatgpt-widescreen-mode.user.js @@ -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 @@ -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 ]) }