Skip to content

Commit

Permalink
v1.7.0 - 2018-04-25
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornstar committed Apr 25, 2018
1 parent c1681c0 commit c480b4f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Intercept Redirect

## v1.7.0 - 2018-04-25
- If there's no extra data, just return the key
- I should probably write some tests

## v1.6.0 - 2018-04-24
- Intercept all requests regardless of transport

Expand Down
2 changes: 1 addition & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ chrome.webRequest.onBeforeRequest.addListener(function(request) {
return o;
}, {});

const redirectUrl = q[site.key] && site.extra && site.extra(q[site.key]);
const redirectUrl = (!site.extra && q[site.key]) || site.extra(q[site.key] || '');

if (redirectUrl) {
return { redirectUrl };
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
"*://vk.com/",
"*://www.youtube.com/"
],
"version": "1.6.0"
"version": "1.7.0"
}

0 comments on commit c480b4f

Please sign in to comment.