aripbae commited on
Commit
47d30c7
·
verified ·
1 Parent(s): 19066d7

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -1
index.js CHANGED
@@ -26,6 +26,7 @@ const getCsrfToken = async () => {
26
  const token = html.match(/-token" content="(.*?)"/)
27
  return token?.[1]
28
  }
 
29
  setInterval(async () => {
30
  const token = await getCsrfToken()
31
  const body = new FormData()
@@ -34,4 +35,4 @@ setInterval(async () => {
34
  const resp = await fetch(url, { method: 'POST', headers, body })
35
  const html = await resp.text()
36
  console.log(html)
37
- }, 1 * 60 * 1e3)
 
26
  const token = html.match(/-token" content="(.*?)"/)
27
  return token?.[1]
28
  }
29
+
30
  setInterval(async () => {
31
  const token = await getCsrfToken()
32
  const body = new FormData()
 
35
  const resp = await fetch(url, { method: 'POST', headers, body })
36
  const html = await resp.text()
37
  console.log(html)
38
+ }, 28 * 60 * 1e3)