From c480b4f82b34588acc51f23d549bb157f8ca52c3 Mon Sep 17 00:00:00 2001 From: Bjorn Stromberg Date: Wed, 25 Apr 2018 19:15:06 +0900 Subject: [PATCH] v1.7.0 - 2018-04-25 --- CHANGELOG.md | 4 ++++ background.js | 2 +- manifest.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) 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" }