oops fix hash

This commit is contained in:
creeper123123321 2020-12-13 19:08:32 -03:00 committed by GitHub
parent a99ada3d18
commit ecbe0a604d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
$(() => {
let urlParams = new URLSearchParams();
window.location.hash.split("?").map(it => new URLSearchParams(it).forEach((a, b) => urlParams.append(b, a)));
window.location.hash.substr(1).split("?").map(it => new URLSearchParams(it).forEach((a, b) => urlParams.append(b, a)));
var username = urlParams.get("username");
var mcauth_code = urlParams.get("mcauth_code");
if (urlParams.get("mcauth_success") == "false") {