Created
May 19, 2016 22:49
-
-
Save gmemstr/0f30fd06676b9d3d20743c72d3d250e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setInterval(function() { | |
// Probably more effecient way of doing this | |
fetch('http://nodemc.space:3350/v1/server/log',{ | |
body: { | |
'apikey':apikey | |
} | |
}) | |
.then((response) => response.text()) | |
.then((responseText) => { | |
$("#console").val(responseText); | |
}); | |
}, 500); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment