mirror of
https://github.com/nfonteyne/octane-website.git
synced 2026-09-03 23:24:48 +02:00
update: visual update, phone responsive, db migration
This commit is contained in:
parent
73ebd6ad49
commit
e97aa2c6c3
16 changed files with 894 additions and 244 deletions
10
src/lib/spotify.js
Normal file
10
src/lib/spotify.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
function isValidSpotifyUrl(url) {
|
||||
try {
|
||||
const parsed = new URL(url);
|
||||
return parsed.hostname === 'open.spotify.com';
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { isValidSpotifyUrl };
|
||||
Loading…
Add table
Add a link
Reference in a new issue