Skip to content

Commit 437f4c4

Browse files
committed
Condensed toggles.sidebar.update.navicon() ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/autoclear-chatgpt-history]
1 parent 7f64f19 commit 437f4c4

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

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

Lines changed: 4 additions & 8 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.30.3
228+
// @version 2025.1.30.4
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
@@ -880,15 +880,11 @@
880880
navicon({ preload = false } = {}) {
881881
const baseURL = `${app.urls.assetHost}/images/icons/incognito`,
882882
schemeMap = { light: 'black', dark: 'white' },
883-
fileName = 'icon32.png'
884-
883+
fileName = `icon32.png?v=${app.latestResourceCommitHash}`
885884
if (preload)
886885
Object.keys(schemeMap).forEach(scheme =>
887-
new Image().src = `${baseURL}/${schemeMap[scheme]}/${fileName}?v=`
888-
+ app.latestResourceCommitHash
889-
)
890-
else toggles.sidebar.navicon.src = baseURL
891-
+ `/${schemeMap[env.ui.scheme]}/${fileName}?v=${app.latestResourceCommitHash}`
886+
new Image().src = `${baseURL}/${schemeMap[scheme]}/${fileName}`)
887+
else toggles.sidebar.navicon.src = `${baseURL}/${schemeMap[env.ui.scheme]}/${fileName}`
892888
},
893889

894890
scheme() { // to match UI scheme

0 commit comments

Comments
 (0)