~cytrogen/masto-fe

ref: 9a472efe7c21447ce4e246bacff5a857a341e4f3 masto-fe/app/javascript/packs/sign_up.js -rw-r--r-- 346 bytes
9a472efe — たいち ひ Rewrite `<TimelineHint />` as FC and TS (#25091) 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);
});