Skip to content

Commit b6383d2

Browse files
committed
Condensed modals.update.available() ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/duckduckgpt]
1 parent 57894f5 commit b6383d2

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

chatgpt/duckduckgpt/duckduckgpt.user.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
// @description:zu Yengeza izimpendulo ze-AI ku-DuckDuckGo (inikwa amandla yi-GPT-4o!)
149149
// @author KudoAI
150150
// @namespace https://kudoai.com
151-
// @version 2025.10.12.3
151+
// @version 2025.10.12.4
152152
// @license MIT
153153
// @icon https://assets.ddgpt.com/images/icons/app/icon48.png?v=533ce0f
154154
// @icon64 https://assets.ddgpt.com/images/icons/app/icon64.png?v=533ce0f
@@ -2661,8 +2661,6 @@
26612661
width: 409,
26622662

26632663
available() {
2664-
2665-
// Show modal
26662664
const updateAvailModal = modals.alert(`🚀 ${app.msgs.alert_updateAvail}!`, // title
26672665
`${app.msgs.alert_newerVer} ${app.name} ` // msg
26682666
+ `(v${app.latestVer}) ${app.msgs.alert_isAvail}! `
@@ -2673,14 +2671,11 @@
26732671
modals.safeWinOpen(`${app.urls.update.gm}?t=${Date.now()}`)
26742672
}, '', modals.update.width
26752673
)
2676-
2677-
// Localize button labels if needed
2678-
if (!env.browser.language.startsWith('en')) {
2674+
if (!env.browser.language.startsWith('en')) { // localize button labels
26792675
const updateBtns = updateAvailModal.querySelectorAll('button')
26802676
updateBtns[1].textContent = app.msgs.btnLabel_update
26812677
updateBtns[0].textContent = app.msgs.btnLabel_dismiss
26822678
}
2683-
26842679
return updateAvailModal
26852680
},
26862681

0 commit comments

Comments
 (0)