Add the original URL as a fallback when creating URL proxys

This commit is contained in:
Jackson Harper 2023-02-09 17:06:14 +08:00
parent cd5429d5fa
commit af55adbef8

View file

@ -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