Fix CheckVRChatCache erroring for non variants

This commit is contained in:
Nekromateion
2024-10-05 15:46:04 +02:00
committed by Natsumi
parent 45544f6495
commit 31ce8b9cee

View File

@@ -5440,13 +5440,13 @@ speechSynthesis.getVoices();
var extractVariantVersion = (url) => {
if (!url) {
return '';
return '0';
}
try {
const params = new URLSearchParams(new URL(url).search);
return params.get('v');
} catch {
return '';
return '0';
}
};