From 44c6223208c869c9b69ed31f07077dd436f07c12 Mon Sep 17 00:00:00 2001 From: Maroxy Date: Mon, 18 Oct 2021 09:40:45 +0200 Subject: [PATCH] fix check --- src/ts/Genshinlib.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ts/Genshinlib.ts b/src/ts/Genshinlib.ts index dcf581e..65f4f38 100644 --- a/src/ts/Genshinlib.ts +++ b/src/ts/Genshinlib.ts @@ -98,7 +98,7 @@ export class Genshinlib { let bg = ''; - if (this.getConfig().background.time == new Date().setDate(new Date().getDate()).toString() || !this.getConfig().background.time) + if (!this.getConfig().background.time || this.getConfig().background.time! >= new Date().setDate(new Date().getDate()).toString()) { await fetch(`https://sdk-os-static.mihoyo.com/hk4e_global/mdk/launcher/api/content?filter_adv=true&launcher_id=10&language=${this.lang.launcher}`) .then(res => res.json())