mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-26 16:15:19 +00:00
Dont even bother loading mappings for assets.
This commit is contained in:
@@ -45,6 +45,9 @@ export default function TestClient(app: Application) {
|
||||
res.set(name, value);
|
||||
});
|
||||
} else {
|
||||
if(req.params.file.endsWith(".map")) {
|
||||
return res.status(404).send("Not found");
|
||||
}
|
||||
console.log(`[TestClient] Downloading file not yet cached! Asset file: ${req.params.file}`);
|
||||
response = await fetch(`https://discord.com/assets/${req.params.file}`, {
|
||||
agent,
|
||||
|
||||
Reference in New Issue
Block a user