Update spotify

This commit is contained in:
Kasper Rynning-Tønnesen
2016-08-27 15:47:28 +02:00
parent 1f5e071767
commit 7c8be00c9a
4 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
!function(){function e(e){var t,o=e.substring(1).split("&"),n={};for(var a in o)t=o[a].split("="),2==t.length&&(n[t[0]]=t[1]);return n}window.addEventListener("load",function(){console.log("hello");var t="b934ecdd173648f5bcd38738af529d58",o="http://localhost/spotify_callback",n="token",a="playlist-read-private playlist-read-collaborative user-read-private";if(window.location.hash.length<=0)window.location.href="https://accounts.spotify.com/authorize?client_id="+t+"&scope="+a+"&show_dialog=false&response_type="+n+"&redirect_uri="+o;else{var i=e(window.location.hash);window.opener.callback(i)}})}();
!function(){function o(o){var e,t=o.substring(1).split("&"),i={};for(var a in t)e=t[a].split("="),2==e.length&&(i[e[0]]=e[1]);return i}window.addEventListener("load",function(){console.log("hello");var e="b934ecdd173648f5bcd38738af529d58",t="https://zoff.no/spotify_callback",i="token",a="playlist-read-private playlist-read-collaborative user-read-private";if(window.location.hash.length<=0)window.location.href="https://accounts.spotify.com/authorize?client_id="+e+"&scope="+a+"&show_dialog=false&response_type="+i+"&redirect_uri="+t;else{var n=o(window.location.hash);window.opener.callback(n)}})}();

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 = "https://zoff.no/spotify_callback";
var response = "token";
var scope = "playlist-read-private playlist-read-collaborative user-read-private";
if(window.location.hash.length <= 0){