diff --git a/package.json b/package.json index c24833a..e791978 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "szuru-chrome", - "version": "0.6.2", + "version": "0.6.3", "description": "Import media from various sites into szurubooru.", "author": "neobooru", "license": "MIT", @@ -16,7 +16,7 @@ }, "dependencies": { "axios": "^0.21.1", - "neo-scraper": "^0.4.1", + "neo-scraper": "^0.4.2", "vue": "^2.6.11", "webextension-polyfill": "^0.3.1" }, diff --git a/src/popup/App.vue b/src/popup/App.vue index 1a5986c..3096eb7 100644 --- a/src/popup/App.vue +++ b/src/popup/App.vue @@ -335,7 +335,7 @@ export default Vue.extend({ // Find which ScrapedPost this belongs to, if any. const post = this.getPostForUrl(details.url); - if (post != undefined) { + if (post != undefined && post.referrer) { console.log(`Setting referrer to '${post.referrer}' for request to '${post.contentUrl}'.`); // TODO: If the headers already have a 'Referer' header this will _not_ override that. // Though as far as I am aware the 'img' tag doesn't set this header. diff --git a/yarn.lock b/yarn.lock index 7afe4df..76f8725 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2501,10 +2501,10 @@ neo-async@^2.5.0, neo-async@^2.6.1: resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== -neo-scraper@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/neo-scraper/-/neo-scraper-0.4.1.tgz#138de16fbe81b7f45573fc089b729036c7532c96" - integrity sha512-2Am+OdSCyX6VA5iS5eFEqCGL+snfGbSjmliZlUjqWADIbhjuMYOJAgboyqCmNB8Wkly7BkSjc9HnifvxS4j4UQ== +neo-scraper@^0.4.2: + version "0.4.2" + resolved "https://registry.yarnpkg.com/neo-scraper/-/neo-scraper-0.4.2.tgz#9f1d6f129bea019bc894ed877442c1451b03b50f" + integrity sha512-cMVl7Ts2S18MlS6ca3fBK0nw131rv2YTtJlqPkLezWh8sVyiLiuBXUgDUy9mCqp2zr57aA22fvPR2XsTICnXUA== nice-try@^1.0.4: version "1.0.5"