From a3ce93b3aa82da14e87feb0b7110057d98c6bec4 Mon Sep 17 00:00:00 2001 From: Nero978 Date: Wed, 9 Aug 2023 22:04:40 +0800 Subject: [PATCH] Update check.js --- js/check.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/js/check.js b/js/check.js index 37794a7..b78fc07 100644 --- a/js/check.js +++ b/js/check.js @@ -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") {