mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-06-06 05:38:44 +08:00
Fix reload not works
This commit is contained in:
@@ -122,11 +122,6 @@ class Image {
|
||||
return re;
|
||||
}
|
||||
async load_image(reload = true) {
|
||||
const src = this.src;
|
||||
if (src) {
|
||||
const re = await this.#load_image(src);
|
||||
if (re) return re;
|
||||
}
|
||||
if (!reload) return;
|
||||
await this.load();
|
||||
const src2 = this.src;
|
||||
|
||||
@@ -172,11 +172,6 @@ class MPVImage {
|
||||
return re;
|
||||
}
|
||||
async load_image(reload = true) {
|
||||
const src = this.src;
|
||||
if (src) {
|
||||
const re = await this.#load_image(src);
|
||||
if (re) return re;
|
||||
}
|
||||
if (!reload) return;
|
||||
await this.load();
|
||||
const src2 = this.src;
|
||||
|
||||
Reference in New Issue
Block a user