ASync moment
This commit is contained in:
parent
09cf3d6e93
commit
ad2fbd0c67
|
@ -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);
|
||||||
|
|
Reference in New Issue