version 0.4.5

This commit is contained in:
Ray Lothian 2020-12-28 14:43:19 +01:00
parent ae8219dd9e
commit 7a10d60cd5
4 changed files with 7 additions and 5 deletions

View file

@ -1,7 +1,7 @@
{ {
"manifest_version": 2, "manifest_version": 2,
"name": "__MSG_extensionName__", "name": "__MSG_extensionName__",
"version": "0.4.4", "version": "0.4.5",
"default_locale": "en", "default_locale": "en",
"description": "__MSG_extensionDescription__", "description": "__MSG_extensionDescription__",
"permissions": [ "permissions": [

View file

@ -608,10 +608,11 @@ chrome.runtime.onMessage.addListener((request, sender, response) => {
if (reason === 'install' || (prefs.faqs && reason === 'update')) { if (reason === 'install' || (prefs.faqs && reason === 'update')) {
const doUpdate = (Date.now() - prefs['last-update']) / 1000 / 60 / 60 / 24 > 45; const doUpdate = (Date.now() - prefs['last-update']) / 1000 / 60 / 60 / 24 > 45;
if (doUpdate && previousVersion !== version) { if (doUpdate && previousVersion !== version) {
tabs.create({ tabs.query({active: true, currentWindow: true}, tbs => tabs.create({
url: page + '?version=' + version + (previousVersion ? '&p=' + previousVersion : '') + '&type=' + reason, url: page + '?version=' + version + (previousVersion ? '&p=' + previousVersion : '') + '&type=' + reason,
active: reason === 'install' active: reason === 'install',
}); index: tbs ? tbs[0].index + 1 : undefined
}));
storage.local.set({'last-update': Date.now()}); storage.local.set({'last-update': Date.now()});
} }
} }

View file

@ -53,6 +53,7 @@ body {
table { table {
width: 100%; width: 100%;
border-collapse: collapse; border-collapse: collapse;
white-space: nowrap;
} }
input[type=search], input[type=search],
input[type=text] { input[type=text] {

View file

@ -1,7 +1,7 @@
{ {
"manifest_version": 2, "manifest_version": 2,
"name": "__MSG_extensionName__", "name": "__MSG_extensionName__",
"version": "0.4.4", "version": "0.4.5",
"default_locale": "en", "default_locale": "en",
"description": "__MSG_extensionDescription__", "description": "__MSG_extensionDescription__",
"permissions": [ "permissions": [