Redoing the standard format for songs, albums, artists, and playlists

This commit is contained in:
Eclypsed
2024-04-24 20:36:56 -04:00
parent 28e4569507
commit 8432184a87
5 changed files with 411 additions and 70 deletions
+4 -3
View File
@@ -29,13 +29,14 @@
$newestAlert = ['caution', 'All fields must be filled out']
return cancel()
}
try {
formData.set('serverUrl', new URL(serverUrl.toString()).origin)
} catch {
if (!URL.canParse(serverUrl.toString())) {
$newestAlert = ['caution', 'Server URL is invalid']
return cancel()
}
formData.set('serverUrl', new URL(serverUrl.toString()).origin)
const deviceId = getDeviceUUID()
formData.append('deviceId', deviceId)