Skip to content
Snippets Groups Projects
Verified Commit edff269b authored by Thomas Rientjes's avatar Thomas Rientjes
Browse files

Update release notes system

parent 87bf73f9
No related branches found
No related tags found
No related merge requests found
......@@ -52,11 +52,19 @@ main._initializeOptions = function () {
main._showReleaseNotes = function (details) {
let location = chrome.extension.getURL('pages/welcome/welcome.html');
let location, previousVersion;
location = chrome.extension.getURL('pages/welcome/welcome.html');
if (details.reason === chrome.runtime.OnInstalledReason.INSTALL ||
details.reason === chrome.runtime.OnInstalledReason.UPDATE) {
previousVersion = details.previousVersion;
if (previousVersion && previousVersion.charAt(0) === '2') {
return; // Do not show release notes after minor updates.
}
if (details.temporary !== true) {
chrome.storage.local.get({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment