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 ) }