ASync moment

This commit is contained in:
Tracker-Friendly 2024-03-28 18:24:24 +00:00
parent 09cf3d6e93
commit ad2fbd0c67
1 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,8 @@
body: JSON.stringify(data) body: JSON.stringify(data)
}) })
.then(response => { .then(response => {
window.location.replace(redirect_uri + "?code=" + response.text() + "&state=" + state) let code = await response.text()
window.location.replace(redirect_uri + "?code=" + code + "&state=" + state)
}) })
.catch(error => { .catch(error => {
alert("Error sending data: " + error.message); alert("Error sending data: " + error.message);