don't need this anymore

This commit is contained in:
2025-01-26 11:48:09 +00:00
parent 37c8573832
commit 1ad11bfc09
-15
View File
@@ -1,15 +0,0 @@
<body>
<h1>Redirecting...</h1>
</body>
<script>
const searchParams=new URLSearchParams(location.search)
if(searchParams.has('client_id')){
searchParams.set('response_type','code')
const url=new URL('https://id.twitch.tv/oauth2/authorize')
url.search=searchParams
location.assign(url.href+'&redirect_uri='+location.origin.replace('127.0.0.1','localhost')+location.pathname)
}else{
opener.postMessage(Object.fromEntries(searchParams),'*')
close()
}
</script>