From 65f9f19cdee134532e2dac577151a3af6f547d89 Mon Sep 17 00:00:00 2001 From: Demetrios Koziris Date: Mon, 2 Jan 2017 22:24:09 -0500 Subject: [PATCH] open update page on update --- src/js/background.js | 5 ++++- src/manifest.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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",