clean up vesktop:// protocol handler

This commit is contained in:
Vendicated
2025-10-19 03:14:33 +02:00
parent fa23c630cb
commit d232797889
3 changed files with 10 additions and 14 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ export async function resolveAssetPath(asset: UserAssetType) {
}
export async function handleVesktopAssetsProtocol(path: string, req: Request) {
const asset = path.replace(/\?v=\d+$/, "").replace(/\/+$/, "");
const asset = path.slice(1);
// @ts-expect-error dumb types
if (!CUSTOMIZABLE_ASSETS.includes(asset)) {