feat: base64 index-data to avoid misencoding (#421)

This commit is contained in:
sigoden
2024-07-22 08:02:32 +08:00
committed by GitHub
parent ec2b064a9a
commit ca5c3d7c54
4 changed files with 15 additions and 8 deletions

View File

@@ -108,7 +108,7 @@ window.addEventListener("DOMContentLoaded", async () => {
return;
}
DATA = JSON.parse($indexData.innerHTML);
DATA = JSON.parse(atob($indexData.innerHTML));
DIR_EMPTY_NOTE = PARAMS.q ? 'No results' : DATA.dir_exists ? 'Empty folder' : 'Folder will be created when a file is uploaded';
await ready();