From af55adbef82856571ed1260df1711757bd24d02e Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Thu, 9 Feb 2023 17:06:14 +0800 Subject: [PATCH] Add the original URL as a fallback when creating URL proxys --- packages/readabilityjs/Readability.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/readabilityjs/Readability.js b/packages/readabilityjs/Readability.js index 74a6870bd..e2510c7fb 100644 --- a/packages/readabilityjs/Readability.js +++ b/packages/readabilityjs/Readability.js @@ -545,6 +545,7 @@ Readability.prototype = { const proxySrc = this.createImageProxyUrl(absoluteSrc, width, height); image.setAttribute('src', proxySrc); + image.setAttribute('data-omnivore-original-src', absoluteSrc) } // remove crossorigin attribute to avoid CORS errors