From 627ef7ae6f67bf3f3a140c59e179c55b7d55ef4e Mon Sep 17 00:00:00 2001 From: maxdemaio Date: Mon, 15 Jan 2024 11:15:04 -0500 Subject: [PATCH] rm agent because the browser sends one --- script.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/script.js b/script.js index 3589954..4a5195c 100644 --- a/script.js +++ b/script.js @@ -780,9 +780,11 @@ async function runHeatMap({ user, year, hue, fetchingFunc, timeClassToFilterBy } function getOptions() { // Compliance - https://www.chess.com/announcements/view/breaking-change-user-agent-contact-info-required - const email = 'maxdman321@gmail.com'; - const headers = new Headers(); - headers.append('User-Agent', `ChessHeat/1.0 (+${email})`); + // If we want to use this, we'd want to have our own server send the requests rather than the browser + // then we'd set this header + // const email = 'maxdman321@gmail.com'; + // const headers = new Headers(); + // headers.append('User-Agent', `ChessHeat/1.0 (+${email})`); const options = { method: 'GET',