😗修复星港提出的主页js出现错误的问题

This commit is contained in:
2024-08-28 01:47:18 +08:00
parent 421c3f53c8
commit 55a4358cc1
5 changed files with 20 additions and 10 deletions

View File

@ -42,7 +42,7 @@ function initialize_fc_lite() {
}
}
fetch(`${UserConfig.private_api_url}all`)
fetch(`${UserConfig.private_api_url}all.json`)
.then(response => response.json())
.then(data => {
localStorage.setItem(cacheKey, JSON.stringify(data));
@ -217,5 +217,5 @@ function whenDOMReady() {
initialize_fc_lite();
}
whenDOMReady()
document.addEventListener("pjax:complete", whenDOMReady)
whenDOMReady();
document.addEventListener("pjax:complete", whenDOMReady);