mirror of
https://github.com/mastodon/mastodon.git
synced 2025-05-12 04:31:11 +00:00
Fix sign-up e-mail confirmation page reloading on error or redirect (#34548)
This commit is contained in:
parent
f1a6cca2e1
commit
0e026eafef
|
@ -5,8 +5,11 @@ import ready from '../mastodon/ready';
|
|||
|
||||
ready(() => {
|
||||
setInterval(() => {
|
||||
axios.get('/api/v1/emails/check_confirmation').then((response) => {
|
||||
if (response.data) {
|
||||
axios.get('/api/v1/emails/check_confirmation', {
|
||||
headers: { Accept: 'application/json' },
|
||||
withCredentials: true,
|
||||
}).then((response) => {
|
||||
if (response.status === 200 && response.data === true) {
|
||||
window.location = '/start';
|
||||
}
|
||||
}).catch(error => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user