Fix reload not works

This commit is contained in:
2024-06-13 14:36:19 +08:00
parent 41f4f530fb
commit 57768a3d32
2 changed files with 0 additions and 10 deletions

View File

@@ -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;

View File

@@ -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;