Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VPN-5636: 2.18 what's new message #8316

Merged
merged 1 commit into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions addons/message_whats_new_v2.18/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"api_version": "0.1",
"id": "message_whats_new_v2.18",
"name": "What's new message",
"type": "message",
"conditions": {
"min_client_version": "2.18.0",
"max_client_version": "2.18.9"
},
"javascript": {
"enable": "setDate.js"
},
"message": {
"date": 1675040400,
"id": "message_whats_new_v2.18",
"title": "You’ve updated to Mozilla VPN 2.18",
"subtitle": "You’re using the latest version of Mozilla VPN.",
"badge": "whats_new",
"blocks": [
{
"id": "c_1",
"type": "text",
"content": "This update includes minor bug fixes, UI adjustments and other performance improvements, including:"
},
{
"id": "c_2",
"type": "ulist",
"content": [
{
"id": "l_2",
"content": "The ability to upgrade to an annual plan from within the app"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This string should be localized using machine memory as it was previously extracted here

}
]
},
{
"id": "c_3",
"type": "text",
"content": "Thank you for installing the latest version!"
}
]
}
}
3 changes: 3 additions & 0 deletions addons/message_whats_new_v2.18/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);
})
Loading