Skip to content

Commit a4ad723

Browse files
committed
Condensed sidebar init in toggles.sidebar.insert() ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/chatgpt-auto-refresh]
1 parent 8aa074f commit a4ad723

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.24.1
223+
// @version 2025.4.26
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
@@ -897,7 +897,7 @@
897897

898898
insert() {
899899
if (this.status?.startsWith('insert') || document.querySelector(`.${this.class}`)) return
900-
const sidebar = document.querySelectorAll('nav')[env.browser.isMobile ? 1 : 0] ; if (!sidebar) return
900+
const sidebar = document.querySelectorAll('nav')[+env.browser.isMobile] ; if (!sidebar) return
901901
this.status = 'inserting' ; if (!this.div) this.create()
902902
sidebar.children[1].before(this.div) ; this.status = 'inserted'
903903
},

0 commit comments

Comments
 (0)