From 57768a3d326d4350802a2361a4ccd7189c40bafc Mon Sep 17 00:00:00 2001 From: lifegpc Date: Thu, 13 Jun 2024 14:36:19 +0800 Subject: [PATCH] Fix reload not works --- page/GalleryPage.ts | 5 ----- page/MPVPage.ts | 5 ----- 2 files changed, 10 deletions(-) diff --git a/page/GalleryPage.ts b/page/GalleryPage.ts index e71981b..07d18b3 100644 --- a/page/GalleryPage.ts +++ b/page/GalleryPage.ts @@ -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; diff --git a/page/MPVPage.ts b/page/MPVPage.ts index 25c0297..124c764 100644 --- a/page/MPVPage.ts +++ b/page/MPVPage.ts @@ -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;