fix: 🐛 aquabox

This commit is contained in:
Raymond
2025-01-04 22:30:40 -05:00
parent 8b9236ae43
commit d220f369e9
4 changed files with 23 additions and 12 deletions

View File

@@ -47,7 +47,7 @@ export default class DDSCache {
*/
getFromDatabase(path: string): Promise<Blob | null> {
return new Promise(async (resolve, reject) => {
if (this.userboxURL.value) {
if (this.userboxURL.value != "") {
let targetPath = path.replaceAll(":", "/");
let response = await fetch(`${this.userboxURL.value}/${targetPath}.chu`).then(b => b.blob()).catch(reject);
if (response)

View File

@@ -173,6 +173,7 @@ export async function userboxFileProcess(folder: FileSystemEntry, progressUpdate
const dataFolder = await getDirectoryFromPath(folder, "data");
if (dataFolder)
await scanOptionFolder(dataFolder, progressUpdate);
useLocalStorage("userboxURL", "").value = "";
useLocalStorage("userboxNew", false).value = true;
useLocalStorage("userboxNewProfile", false).value = true;
location.reload();