From eb30109d7fc5508348cad0993cc3b586801e780e Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 30 Dec 2025 12:26:15 +0800 Subject: [PATCH] :rotating_light: --- app/src/plugin/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/plugin/index.ts b/app/src/plugin/index.ts index f2ef00257..181f4ff54 100644 --- a/app/src/plugin/index.ts +++ b/app/src/plugin/index.ts @@ -258,17 +258,17 @@ export class Plugin { this.setting.open(this.displayName || this.name); } - public loadData(storageName: string): Promise { + public loadData(storageName: string): Promise { if (typeof this.data[storageName] === "undefined") { this.data[storageName] = ""; } - return new Promise((resolve, reject) => { + return new Promise((resolve) => { fetchPost("/api/file/getFile", { path: `/data/storage/petal/${this.name}/${storageName.replace(/[\/\\]+/g, "")}` }, (response) => { this.data[storageName] = response; resolve(this.data[storageName]); - }, null, (response) => { + }, null, () => { resolve(""); }); });