mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-08 08:27:26 +08:00
feat: 🎨 finalize server url mode
This commit is contained in:
@@ -49,7 +49,7 @@ export default class DDSCache {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
if (this.userboxURL.value) {
|
||||
let targetPath = path.replaceAll(":", "/");
|
||||
let response = await fetch(`${this.userboxURL.value}/${targetPath}.dds`).then(b => b.blob()).catch(reject);
|
||||
let response = await fetch(`${this.userboxURL.value}/${targetPath}.chu`).then(b => b.blob()).catch(reject);
|
||||
if (response)
|
||||
return resolve(response);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user