Fix CheckVRChatCache erroring for non variants

This commit is contained in:
Nekromateion
2024-10-05 15:54:40 +02:00
committed by Natsumi
parent 31ce8b9cee
commit 5562d3e76f

View File

@@ -5444,7 +5444,9 @@ speechSynthesis.getVoices();
}
try {
const params = new URLSearchParams(new URL(url).search);
return params.get('v');
let version = params.get('v');
if (version) return version;
return '0'
} catch {
return '0';
}