diff --git a/extension/chrome/manifest.json b/extension/chrome/manifest.json index ad36a02..efa8ce7 100755 --- a/extension/chrome/manifest.json +++ b/extension/chrome/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "__MSG_extensionName__", - "version": "0.4.4", + "version": "0.4.5", "default_locale": "en", "description": "__MSG_extensionDescription__", "permissions": [ diff --git a/extension/firefox/common.js b/extension/firefox/common.js index cc56f3a..b6417c3 100644 --- a/extension/firefox/common.js +++ b/extension/firefox/common.js @@ -608,10 +608,11 @@ chrome.runtime.onMessage.addListener((request, sender, response) => { if (reason === 'install' || (prefs.faqs && reason === 'update')) { const doUpdate = (Date.now() - prefs['last-update']) / 1000 / 60 / 60 / 24 > 45; if (doUpdate && previousVersion !== version) { - tabs.create({ + tabs.query({active: true, currentWindow: true}, tbs => tabs.create({ 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()}); } } diff --git a/extension/firefox/data/popup/index.css b/extension/firefox/data/popup/index.css index 70549fa..66ae3ca 100644 --- a/extension/firefox/data/popup/index.css +++ b/extension/firefox/data/popup/index.css @@ -53,6 +53,7 @@ body { table { width: 100%; border-collapse: collapse; + white-space: nowrap; } input[type=search], input[type=text] { diff --git a/extension/firefox/manifest.json b/extension/firefox/manifest.json index 186a93a..33b7d64 100755 --- a/extension/firefox/manifest.json +++ b/extension/firefox/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "__MSG_extensionName__", - "version": "0.4.4", + "version": "0.4.5", "default_locale": "en", "description": "__MSG_extensionDescription__", "permissions": [