diff --git a/tts.exe b/tts.exe index 9873fad..76ef4f4 100644 Binary files a/tts.exe and b/tts.exe differ diff --git a/tts.py b/tts.py index 8d48a67..79c0bf3 100644 --- a/tts.py +++ b/tts.py @@ -1259,12 +1259,12 @@ class HTTPserv(BaseHTTPRequestHandler): function displayCode() {\ var url = window.location.href;\ var test = url.indexOf(\"access_token\");\ - const queryString = window.location.search;\ - const urlParams = new URLSearchParams(queryString);\ - const token = urlParams.get(\"access_token\")\ + var qs = new URL(window.location.href.replace(/#/g,\"?\"));\ + var token = qs.searchParams.get(\"access_token\");\ + var scope = qs.searchParams.get(\"scope\");\ if (test != -1) { \ document.getElementById(\"code\").innerHTML = \"\ -

oauth:\" + token + \"

\ +

Token:
oauth:\" + token + \"

Scope:
\" + scope + \"

URL:
\"+ url +\"

\

Copy the token into your config.yml and restart \ the bot.

\";}}\ \