From 0f7ce05de2223a0705c4ed6e5c02dd24b47203fd Mon Sep 17 00:00:00 2001 From: Deathamns Date: Sun, 23 Nov 2014 18:21:06 +0100 Subject: [PATCH] Ports cleanup - Remove duplicate platform specific (from src/) and other unnecessary files - Fix and update vapi-*.js files for Safari - Add tools/make-safari.sh - Move js/vapi-appinfo.js to meta/ (so, every vendor specific file will be at the same location) --- meta/crx/vapi-background.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/crx/vapi-background.js b/meta/crx/vapi-background.js index ccbe85d..84587d6 100644 --- a/meta/crx/vapi-background.js +++ b/meta/crx/vapi-background.js @@ -158,9 +158,9 @@ vAPI.tabs.open = function(details) { if ( details.select ) { chrome.tabs.query({ currentWindow: true }, function(tabs) { - var url = targetURL.replace(rgxHash, ''); - // this is questionable var rgxHash = /#.*/; + // this is questionable + var url = targetURL.replace(rgxHash, ''); var selected = tabs.some(function(tab) { if ( tab.url.replace(rgxHash, '') === url ) { chrome.tabs.update(tab.id, { active: true });