generateFullURL will now respect protocol

This commit is contained in:
Violet Millie 2024-01-24 22:10:57 +00:00
parent eb3e73f690
commit eb290f7ba5
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ export default class SpotifyAPI {
* @example `/album/` -> `https://open.spotify.com/album/` * @example `/album/` -> `https://open.spotify.com/album/`
*/ */
private generateFullURL(relativeURL: string) { private generateFullURL(relativeURL: string) {
return `${window.location.host}${relativeURL}`; return `${window.location.protocol}//${window.location.host}${relativeURL}`;
} }
getCurrentTrack() { getCurrentTrack() {