generateFullURL will now respect protocol
This commit is contained in:
parent
eb3e73f690
commit
eb290f7ba5
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue