Skip to content

Commit

Permalink
Updated modals.app refs to modals.dependencies.app ↞ [auto-sync f…
Browse files Browse the repository at this point in the history
  • Loading branch information
kudo-sync-bot committed Dec 6, 2024
1 parent a46b0df commit c842bec
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions chrome/extension/components/modals.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')}! `
+ '<a target="_blank" rel="noopener" style="font-size: 0.7rem" href="'
+ modals.app.urls.update.replace(/.+\/([^/]+)meta\.js/,
`${modals.app.urls.gitHub}/blob/main/greasemonkey/$1user.js`)
+ modals.dependencies.app.urls.update.replace(/.+\/([^/]+)meta\.js/,
`${modals.dependencies.app.urls.gitHub}/blob/main/greasemonkey/$1user.js`)
+ `">${modals.getMsg('link_viewChanges')}</a>`,
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
)

Expand All @@ -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
)
}
Expand Down
11 changes: 6 additions & 5 deletions firefox/extension/components/modals.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')}! `
+ '<a target="_blank" rel="noopener" style="font-size: 0.7rem" href="'
+ modals.app.urls.update.replace(/.+\/([^/]+)meta\.js/,
`${modals.app.urls.gitHub}/blob/main/greasemonkey/$1user.js`)
+ modals.dependencies.app.urls.update.replace(/.+\/([^/]+)meta\.js/,
`${modals.dependencies.app.urls.gitHub}/blob/main/greasemonkey/$1user.js`)
+ `">${modals.getMsg('link_viewChanges')}</a>`,
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
)

Expand All @@ -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
)
}
Expand Down

0 comments on commit c842bec

Please sign in to comment.