http rewrite (actually works this time!!1!) (#1257)

* rewrite http

* browser fun

* all the mimes dammit

* i need a newline

* whoops

* forgot about this

* use promises and HTTPRequest.method

* fluent

* move httpclient to external module

* branding

* middleware

* revert middleware
This commit is contained in:
Gus Caplan
2017-04-01 02:04:01 -05:00
committed by Crawl
parent a4e0af2e45
commit cb3f6d9646
5 changed files with 18 additions and 19 deletions

View File

@@ -5,7 +5,7 @@
<meta charset="utf-8" />
</head>
<body>
<script type="text/javascript" src="../webpack/discord.10.0.1.js"></script>
<script type="text/javascript" src="../webpack/discord.js"></script>
<script type="text/javascript" src="auth.js"></script>
<script type="text/javascript">
(() => {
@@ -23,7 +23,8 @@
console.log(message.author.username, message.author.id, message.content);
});
client.login(window.token || prompt('token pls', 'abcdef123456'));
client.login(localStorage.token || window.token || prompt('token pls', 'abcdef123456'))
.then((token) => localStorage.token = token);
})();
</script>
</body>