Skip to content

Commit b9196c8

Browse files
committed
Abstrcted toggles.sidebar.updateNavicon() ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/autoclear-chatgpt-history]
1 parent 9909161 commit b9196c8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

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

Lines changed: 7 additions & 3 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.5
228+
// @version 2025.1.29.6
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
@@ -875,11 +875,15 @@
875875
sidebar.insertBefore(this.div, sidebar.children[1]) ; this.status = 'inserted'
876876
},
877877

878+
updateNavicon() {
879+
this.navicon.src = `${app.urls.assetHost}/images/icons/incognito/${
880+
env.ui.scheme == 'dark' ? 'white' : 'black' }/icon32.png?v=${app.latestResourceCommitHash}`
881+
},
882+
878883
updateScheme() { // to match UI scheme
879884
this.div.classList.add(env.ui.scheme)
880885
this.div.classList.remove(env.ui.scheme == 'dark' ? 'light' : 'dark')
881-
this.navicon.src = `${app.urls.assetHost}/images/icons/incognito/${
882-
env.ui.scheme == 'dark' ? 'white' : 'black' }/icon32.png?v=${app.latestResourceCommitHash}`
886+
this.updateNavicon()
883887
},
884888

885889
updateState() {

0 commit comments

Comments
 (0)