mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
1 line
603 B
JavaScript
1 line
603 B
JavaScript
!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)}})}(); |