Fixed error with only localhost with spotify inport

This commit is contained in:
Kasper Rynning-Tønnesen
2016-08-31 15:42:02 +02:00
parent c9dc08fe52
commit f67340dc84
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
window.addEventListener("load", function(){
console.log("hello");
var client_id = "b934ecdd173648f5bcd38738af529d58";
var redirect = "http://localhost/spotify_callback";
var redirect = window.location.protocol + "//" + window.location.hostname + "/spotify_callback";
var response = "token";
var scope = "playlist-read-private playlist-read-collaborative user-read-private";
if(window.location.hash.length <= 0){