fix image loading

This commit is contained in:
Daniel Bulant 2022-04-19 20:57:12 +02:00
parent 8c32bdb7a0
commit 625f8dd010

View file

@ -61,7 +61,7 @@ export class BaseGenerator {
async fetchImage(url, chapter) {
var res;
try {
res = await fetch(url);
res = await fetch("https://cors-anywhere.danbulant.workers.dev/?" + url);
} catch(e) {
console.error(e);
res = await fetch(proxy + url);