Skip to content

Commit

Permalink
Update check.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Nero978 committed Aug 9, 2023
1 parent fe49342 commit a3ce93b
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions js/check.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,7 @@ function check() {

requestUrl = "https://api.mtsmc.net/white-list/query?player=" + username;

var myHeaders = new Headers();
myHeaders.append("User-Agent", "mtsmc.net/1.0.0");

var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};

fetch(requestUrl, requestOptions)
fetch(requestUrl)
.then(response => response.json())
.then(result => {
if (result.status == "200") {
Expand Down

0 comments on commit a3ce93b

Please sign in to comment.