From eb290f7ba5ca7e2e8ffd738aedad596c70dff714 Mon Sep 17 00:00:00 2001 From: Violet Millie Date: Wed, 24 Jan 2024 22:10:57 +0000 Subject: [PATCH] generateFullURL will now respect protocol --- src/extension/typescript/modules/SpotifyAPI.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {