diff --git a/CHANGELOG.md b/CHANGELOG.md index a61d223..445a100 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/background.js b/background.js index 47c58a7..1215299 100644 --- a/background.js +++ b/background.js @@ -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 }; diff --git a/manifest.json b/manifest.json index c7b3606..a45a7c2 100644 --- a/manifest.json +++ b/manifest.json @@ -21,5 +21,5 @@ "*://vk.com/", "*://www.youtube.com/" ], - "version": "1.6.0" + "version": "1.7.0" }