mirror of
https://github.com/danbulant/Mangades
synced 2026-06-17 21:31:03 +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) {
|
||||
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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue