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:
parent
ff6c553fb2
commit
0f7ce05de2
1 changed files with 2 additions and 2 deletions
|
@ -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 });
|
||||
|
|
Loading…
Reference in a new issue