Browse Source

this fixes #1128

pull/2/head
gorhill 10 years ago
parent
commit
12fcc2d4f3
  1. 4
      platform/chromium/vapi-background.js

4
platform/chromium/vapi-background.js

@ -319,9 +319,6 @@ vAPI.tabs.open = function(details) {
vAPI.tabs.replace = function(tabId, url) { vAPI.tabs.replace = function(tabId, url) {
var targetURL = url; var targetURL = url;
if ( typeof targetURL !== 'string' || targetURL === '' ) {
return;
}
// extension pages // extension pages
if ( /^[\w-]{2,}:/.test(targetURL) !== true ) { if ( /^[\w-]{2,}:/.test(targetURL) !== true ) {
@ -340,7 +337,6 @@ vAPI.tabs.replace = function(tabId, url) {
if ( chrome.runtime.lastError ) { if ( chrome.runtime.lastError ) {
return; return;
} }
}); });
}; };

Loading…
Cancel
Save