Skip to content

Commit f35bd78

Browse files
committed
Updated this ref in toggles.sidebar.update.state() ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/autoclear-chatgpt-history]
1 parent 0ef89e4 commit f35bd78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chatgpt/autoclear-chatgpt-history/autoclear-chatgpt-history.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
225225
// @description:zu Ziba itshala lokucabanga okuzoshintshwa ngokuzenzakalelayo uma ukubuka chatgpt.com
226226
// @author Adam Lui
227227
// @namespace https://github.com/adamlui
228-
// @version 2025.1.29.7
228+
// @version 2025.1.30
229229
// @license MIT
230230
// @icon https://assets.autoclearchatgpt.com/images/icons/openai/black/icon48.png?v=f461c06
231231
// @icon64 https://assets.autoclearchatgpt.com/images/icons/openai/black/icon64.png?v=f461c06
@@ -888,7 +888,7 @@
888888
},
889889

890890
state() {
891-
if (!this.div) return // since toggle never created = sidebar missing
891+
if (!toggles.sidebar.div) return // since toggle never created = sidebar missing
892892
toggles.sidebar.div.style.display = config.toggleHidden ? 'none' : 'flex'
893893
toggles.sidebar.toggleInput.checked = config.autoclear
894894
toggles.sidebar.toggleLabel.innerText = `${app.msgs.mode_autoclear} `

0 commit comments

Comments
 (0)