Skip to content

Commit

Permalink
Get the latest version of list file
Browse files Browse the repository at this point in the history
  • Loading branch information
Super12138 committed Aug 29, 2024
1 parent ff35c1c commit 60aec64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/settings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ document.addEventListener('settingsPageLoaded', async () => {
const listVersion: HTMLParagraphElement = document.querySelector('#listVersion')!;
appVersion.innerHTML = `网站版本:${VERSION_NAME}-${VARIANT}-${COMMIT_HASH} (${VERSION_CODE})`;

getFile('https://cdn.jsdelivr.net/gh/Super12138/AY-Questionnaires-DB/list.json')
getFile(`https://cdn.jsdelivr.net/gh/Super12138/AY-Questionnaires-DB/list.json?${new Date().getTime()}`)
.then((response: string) => {
const json: QuestionnairesList = JSON.parse(response);

Expand Down

0 comments on commit 60aec64

Please sign in to comment.