Delete remote playlists

+ minor ui changes
This commit is contained in:
Shiny Nematoda 2023-04-16 09:59:47 +00:00 committed by vrifox
parent db0009d186
commit 7bf279438f
No known key found for this signature in database
GPG key ID: D40098E5B60B2197
9 changed files with 62 additions and 16 deletions

View file

@ -6,6 +6,12 @@ export function useSanitize(txt) {
});
}
export function useVerifyAuth(hash) {
return /[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}/.test(
hash,
);
}
export function useRoute(l) {
history.pushState({}, '', l);
}