Browse Source

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)
pull/2/head
Deathamns 10 years ago
committed by gorhill
parent
commit
0f7ce05de2
  1. 4
      meta/crx/vapi-background.js

4
meta/crx/vapi-background.js

@ -158,9 +158,9 @@ vAPI.tabs.open = function(details) {
if ( details.select ) { if ( details.select ) {
chrome.tabs.query({ currentWindow: true }, function(tabs) { chrome.tabs.query({ currentWindow: true }, function(tabs) {
var url = targetURL.replace(rgxHash, '');
// this is questionable
var rgxHash = /#.*/; var rgxHash = /#.*/;
// this is questionable
var url = targetURL.replace(rgxHash, '');
var selected = tabs.some(function(tab) { var selected = tabs.some(function(tab) {
if ( tab.url.replace(rgxHash, '') === url ) { if ( tab.url.replace(rgxHash, '') === url ) {
chrome.tabs.update(tab.id, { active: true }); chrome.tabs.update(tab.id, { active: true });

Loading…
Cancel
Save