fix check

This commit is contained in:
Maroxy 2021-10-18 09:40:45 +02:00
parent 12f45840d9
commit 44c6223208

View file

@ -98,7 +98,7 @@ export class Genshinlib
{ {
let bg = ''; 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}`) 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()) .then(res => res.json())