Skip to content

Commit

Permalink
VPN-6469 and VPN-6470: Addon messages for v2.24 (#9740)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcleinman authored Jul 23, 2024
1 parent 6c6a54a commit 981fe1a
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if (('updateTime' in api.settings)) {
// Macos v2.16.0 requires a web-based update.
if (api.env.platform === 'macos' && api.env.versionString === '2.16.0') {
api.addon.setTitle(
'message.message_update_v2.23.block.extra_1',
'message.message_update_v2.24.block.extra_1',
'Download the new Mozilla VPN');
api.addon.composer.remove('c_3');
return;
Expand Down Expand Up @@ -51,6 +51,6 @@ if (versionCompare([2, 13, 0], version) >= 0 ||
api.addon.composer.remove('c_3');

api.addon.setTitle(
'message.message_update_v2.23.block.extra_1',
'message.message_update_v2.24.block.extra_1',
'Download the new Mozilla VPN');
})
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"api_version": "0.1",
"id": "message_update_v2.23",
"name": "Update to Mozilla VPN 2.23",
"id": "message_update_v2.24",
"name": "Update to Mozilla VPN 2.24",
"type": "message",
"conditions": {
"max_client_version": "2.22.9",
"max_client_version": "2.23.9",
"javascript": "osCheck.js"
},
"javascript": {
"enable": "enable.js"
},
"message": {
"date": 1713466835,
"id": "message_update_v2.23",
"title": "Update to Mozilla VPN 2.23",
"date": 1722476590,
"id": "message_update_v2.24",
"title": "Update to Mozilla VPN 2.24",
"subtitle": "We’ve released an updated version of Mozilla VPN! Update to the latest version for the best possible Mozilla VPN experience.",
"badge": "new_update",
"blocks": [
Expand Down Expand Up @@ -46,7 +46,7 @@
{
"id": "extra_1",
"type": "text",
"content": "Download the new Mozilla VPN 2.23"
"content": "Download the new Mozilla VPN 2.24"
}
]
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
33 changes: 33 additions & 0 deletions addons/message_whats_new_v2.24/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"api_version": "0.1",
"id": "message_whats_new_v2.24",
"name": "What's new message",
"type": "message",
"conditions": {
"min_client_version": "2.24.0",
"max_client_version": "2.24.9"
},
"javascript": {
"enable": "setDate.js"
},
"message": {
"date": 1722476590,
"id": "message_whats_new_v2.24",
"title": "You’ve updated to Mozilla VPN 2.24",
"subtitle": "You’re using the latest version of Mozilla VPN.",
"badge": "whats_new",
"notify": false,
"blocks": [
{
"id": "c_1-3",
"type": "text",
"content": "We’ve made bug fixes, UI adjustments and other performance improvements to make your experience using VPN even better."
},
{
"id": "c_3",
"type": "text",
"content": "Thank you for installing the latest version!"
}
]
}
}
3 changes: 3 additions & 0 deletions addons/message_whats_new_v2.24/setDate.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(function(api) {
api.addon.date = (api.settings.updateTime.getTime() / 1000);
})

0 comments on commit 981fe1a

Please sign in to comment.