diff --git a/src/extension/typescript/modules/SpotifyAPI.ts b/src/extension/typescript/modules/SpotifyAPI.ts index f50f45d..39a22db 100644 --- a/src/extension/typescript/modules/SpotifyAPI.ts +++ b/src/extension/typescript/modules/SpotifyAPI.ts @@ -36,7 +36,7 @@ export default class SpotifyAPI { * @example `/album/` -> `https://open.spotify.com/album/` */ private generateFullURL(relativeURL: string) { - return `${window.location.host}${relativeURL}`; + return `${window.location.protocol}//${window.location.host}${relativeURL}`; } getCurrentTrack() {