twitch-agent/www/login.html

27 lines
653 B
HTML
Raw Permalink Normal View History

2022-01-16 15:10:20 -05:00
<html>
<head>
<script type="text/javascript">
window.addEventListener('load', (event) => {
document.querySelector("body").appendChild(document.createTextNode(document.location.hash));
const myInit = {
method: 'POST',
mode: 'cors',
body: document.location.hash
};
let myRequest = new Request('token');
fetch(myRequest, myInit).then(function (response) {
document.querySelector("body").appendChild(document.createTextNode(response));
});
});
</script>
</head>
<body>
hi
</body>
</html>