From 625f8dd010f3acf3e32c6deed2c79783a0338b17 Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Tue, 19 Apr 2022 20:57:12 +0200 Subject: [PATCH] fix image loading --- src/util/baseGenerator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/baseGenerator.js b/src/util/baseGenerator.js index 6a5d996..cb4caea 100644 --- a/src/util/baseGenerator.js +++ b/src/util/baseGenerator.js @@ -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);