Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function longPoll() {
- fetch('/plugins/md_presale/demons/deadline.php', {
- cache: 'no-cache',
- headers: {
- 'Content-Type': 'application/json'
- },
- data: {
- userId: 115
- }
- }).then(function(response) {
- if(response.status === 200) {
- console.log(response);
- longPoll();
- }
- }).catch(function (err) {
- console.log(err);
- })
- }
- longPoll();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement