Added support for link.tospotify.com urls

This commit is contained in:
RemixDev 2020-11-10 13:57:53 +01:00
parent 511d3f3aad
commit 4fa4d7ca7a
No known key found for this signature in database
GPG Key ID: B33962B465BDB51C
2 changed files with 6 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -24,7 +24,8 @@ export function isValidURL(text) {
if (
lowerCaseText.indexOf('deezer.com') >= 0 ||
lowerCaseText.indexOf('deezer.page.link') >= 0 ||
lowerCaseText.indexOf('open.spotify.com') >= 0
lowerCaseText.indexOf('open.spotify.com') >= 0 ||
lowerCaseText.indexOf('link.tospotify.com') >= 0
) {
return true
}