diff --git a/src/js/background.js b/src/js/background.js index 4c09068..0553653 100644 --- a/src/js/background.js +++ b/src/js/background.js @@ -20,14 +20,17 @@ chrome.runtime.onInstalled.addListener(function (details) { let currentVersion = chrome.runtime.getManifest().version; if (details.reason === "install") { + console.log("Installed McGill Enhanced version " + currentVersion); chrome.tabs.create({url: "https://demetrios-koziris.github.io/McGillEnhanced"}, function (tab) { - console.log("Installed McGill Enhanced version " + currentVersion); console.log("New tab launched with https://demetrios-koziris.github.io/McGillEnhanced"); }); } else if (details.reason === "update") { let previousVersion = details.previousVersion; console.log("Updated McGill Enhanced from version " + previousVersion + " to version " + currentVersion); + chrome.tabs.create({url: "https://demetrios-koziris.github.io/McGillEnhanced/3.0.32"}, function (tab) { + console.log("New tab launched with https://demetrios-koziris.github.io/McGillEnhanced/3.0.32"); + }); } chrome.runtime.onUpdateAvailable.addListener(function(details) { diff --git a/src/manifest.json b/src/manifest.json index 0c76f5b..a9e1247 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -2,7 +2,7 @@ "name": "McGill Enhanced", "author": "Demetrios Koziris", "manifest_version": 2, - "version": "3.0.31", + "version": "3.0.32", "description": "Enhance the functionality of McGill.ca", "permissions" : [ "declarativeContent",