From c842bec140915cab46cfa0645283e183c62cc276 Mon Sep 17 00:00:00 2001 From: kudo-sync-bot Date: Fri, 6 Dec 2024 08:09:12 -0800 Subject: [PATCH] =?UTF-8?q?Updated=20`modals.app`=20refs=20to=20`modals.de?= =?UTF-8?q?pendencies.app`=20=E2=86=9E=20[auto-sync=20from=20https://githu?= =?UTF-8?q?b.com/adamlui/ai-web-extensions]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chrome/extension/components/modals.js | 11 ++++++----- firefox/extension/components/modals.js | 11 ++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/chrome/extension/components/modals.js b/chrome/extension/components/modals.js index 307131aa..83487cb1 100644 --- a/chrome/extension/components/modals.js +++ b/chrome/extension/components/modals.js @@ -256,13 +256,14 @@ window.modals = { // Show modal const updateAvailModal = modals.alert(`🚀 ${modals.getMsg('alert_updateAvail')}!`, // title `${modals.getMsg('alert_newerVer')} ${modals.getMsg('appName')} ` - + `(v${modals.app.latestVer}) ${modals.getMsg('alert_isAvail')}! ` + + `(v${modals.dependencies.app.latestVer}) ${modals.getMsg('alert_isAvail')}! ` + '${modals.getMsg('link_viewChanges')}`, function update() { // button - modals.safeWinOpen(modals.app.urls.update.replace('meta.js', 'user.js') + '?t=' + Date.now()) + modals.safeWinOpen( + modals.dependencies.app.urls.update.replace('meta.js', 'user.js') + '?t=' + Date.now()) }, '', modals.update.width ) @@ -278,7 +279,7 @@ window.modals = { unavailable() { return modals.alert(`${modals.getMsg('alert_upToDate')}!`, // title - `${modals.getMsg('appName')} (v${modals.app.version}) ${modals.getMsg('alert_isUpToDate')}!`, // msg + `${modals.getMsg('appName')} (v${modals.dependencies.app.version}) ${modals.getMsg('alert_isUpToDate')}!`, // msg '', '', modals.update.width ) } diff --git a/firefox/extension/components/modals.js b/firefox/extension/components/modals.js index 307131aa..83487cb1 100644 --- a/firefox/extension/components/modals.js +++ b/firefox/extension/components/modals.js @@ -256,13 +256,14 @@ window.modals = { // Show modal const updateAvailModal = modals.alert(`🚀 ${modals.getMsg('alert_updateAvail')}!`, // title `${modals.getMsg('alert_newerVer')} ${modals.getMsg('appName')} ` - + `(v${modals.app.latestVer}) ${modals.getMsg('alert_isAvail')}! ` + + `(v${modals.dependencies.app.latestVer}) ${modals.getMsg('alert_isAvail')}! ` + '${modals.getMsg('link_viewChanges')}`, function update() { // button - modals.safeWinOpen(modals.app.urls.update.replace('meta.js', 'user.js') + '?t=' + Date.now()) + modals.safeWinOpen( + modals.dependencies.app.urls.update.replace('meta.js', 'user.js') + '?t=' + Date.now()) }, '', modals.update.width ) @@ -278,7 +279,7 @@ window.modals = { unavailable() { return modals.alert(`${modals.getMsg('alert_upToDate')}!`, // title - `${modals.getMsg('appName')} (v${modals.app.version}) ${modals.getMsg('alert_isUpToDate')}!`, // msg + `${modals.getMsg('appName')} (v${modals.dependencies.app.version}) ${modals.getMsg('alert_isUpToDate')}!`, // msg '', '', modals.update.width ) }