🐛 (spotify) don't redirect if no env variable is set
This commit is contained in:
@@ -17,6 +17,9 @@ const getHeaders = (token: string) => ({
|
||||
})
|
||||
|
||||
export const redirectToSpotifyConnect = () => {
|
||||
if (!process.env.VUE_APP_SPOTIFY_CLIENT_ID) {
|
||||
return
|
||||
}
|
||||
const authorizeURL = new URL('https://accounts.spotify.com/authorize')
|
||||
authorizeURL.searchParams.append(
|
||||
'client_id',
|
||||
|
||||
Reference in New Issue
Block a user