mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 11:35:13 +00:00
Fix sign-up e-mail confirmation page reloading on error or redirect (#34548)
This commit is contained in:
parent
f1a6cca2e1
commit
0e026eafef
1 changed files with 5 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue