mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-09 03:47:26 +08:00
fix: 🐛 aquabox
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user