mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
1 line
604 B
JavaScript
1 line
604 B
JavaScript
!function(){function o(o){var t,e=o.substring(1).split("&"),a={};for(var i in e)t=e[i].split("="),2==t.length&&(a[t[0]]=t[1]);return a}window.addEventListener("load",function(){console.log("hello");var t="b934ecdd173648f5bcd38738af529d58",e="http://localhost/spotify_callback",a="token",i="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="+i+"&show_dialog=false&response_type="+a+"&redirect_uri="+e;else{var l=o(window.location.hash);window.opener.callback(l)}})}(); |