~cytrogen/masto-fe

ref: 0222df6047a8569d04cfdc36668d46b71bec2e75 masto-fe/app/javascript/packs/sign_up.js -rw-r--r-- 346 bytes
0222df60 — Claire Merge pull request #2236 from ClearlyClaire/glitch-soc/merge-upstream 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import './public-path';
import ready from '../mastodon/ready';
import axios from 'axios';

ready(() => {
  setInterval(() => {
    axios.get('/api/v1/emails/check_confirmation').then((response) => {
      if (response.data) {
        window.location = '/start';
      }
    }).catch(error => {
      console.error(error);
    });
  }, 5000);
});