1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-09-30 17:19:35 +13:00

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)
This commit is contained in:
Deathamns 2014-11-23 18:21:06 +01:00 committed by gorhill
parent ff6c553fb2
commit 0f7ce05de2

View file

@ -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 });