I need help with JS

Back
Redlava
Join Date:
Posts:
May 2022
3115
2 years ago | 8 • By Redlava

var url = " api.polytoria.com/v1/asset/catalog?limit=1";


var xhr = new XMLHttpRequest();
xhr.open("GET", url);


xhr.setRequestHeader("accept", "*/*");


xhr.onreadystatechange = function () {
if (xhr.readyState === 4) {
console.log(xhr.status);
console.log(xhr.responseText);
}};


xhr.send();


I want to change console log to a plain message how?



Epic Signature Polytoria times mashup 1 is here https://polytoria.com/forum/post/176906 Polytoria times mashup 2 is here https://polytoria.com/forum/post/177580

Redlava OP
Join Date:
Posts:
May 2022
3115
2 years ago • By Redlava OP

Update never mind I figured it out but how do I make it not a long think just a few things



Epic Signature Polytoria times mashup 1 is here https://polytoria.com/forum/post/176906 Polytoria times mashup 2 is here https://polytoria.com/forum/post/177580