mirror of
https://github.com/danbulant/Mangades
synced 2026-07-05 19:10:58 +00:00
fix image loading
This commit is contained in:
parent
8c32bdb7a0
commit
625f8dd010
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ export class BaseGenerator {
|
||||||
async fetchImage(url, chapter) {
|
async fetchImage(url, chapter) {
|
||||||
var res;
|
var res;
|
||||||
try {
|
try {
|
||||||
res = await fetch(url);
|
res = await fetch("https://cors-anywhere.danbulant.workers.dev/?" + url);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
res = await fetch(proxy + url);
|
res = await fetch(proxy + url);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue