@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "uMatrix",
"short_name": "uMatrix",
"version": "1.0.1.2",
"version": "1.0.1.3",
"description": "__MSG_extShortDesc__",
"icons": {
"16": "img/icon_16.png",
@ -278,7 +278,8 @@ vAPI.tabs.open = function(details) {
}
chrome.tabs.query({ url: targetURL }, function(tabs) {
var tab = tabs[0];
if ( chrome.runtime.lastError ) { /* noop */ }
var tab = Array.isArray(tabs) && tabs[0];
if ( tab ) {
chrome.tabs.update(tab.id, { active: true }, function(tab) {
chrome.windows.update(tab.windowId, { focused: true });
@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
<Description about="urn:mozilla:install-manifest">
<em:id>uMatrix-webext@raymondhill.net</em:id>
<em:id>uMatrix@raymondhill.net</em:id>
<em:version>{version}</em:version>
<em:name>{name}</em:name>
<em:description>{description}</em:description>