Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     function longPoll() {
  2.         fetch('/plugins/md_presale/demons/deadline.php', {
  3.             cache: 'no-cache',
  4.             headers: {
  5.                 'Content-Type': 'application/json'
  6.             },
  7.             data: {
  8.                 userId: 115
  9.             }
  10.         }).then(function(response) {
  11.             if(response.status === 200) {
  12.                 console.log(response);
  13.                 longPoll();
  14.             }
  15.         }).catch(function (err) {
  16.             console.log(err);
  17.         })
  18.     }
  19.  
  20.     longPoll();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement