Skip to content

Commit

Permalink
rm agent because the browser sends one
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdemaio committed Jan 15, 2024
1 parent 68af3fd commit 627ef7a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '[email protected]';
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 = '[email protected]';
// const headers = new Headers();
// headers.append('User-Agent', `ChessHeat/1.0 (+${email})`);

const options = {
method: 'GET',
Expand Down

0 comments on commit 627ef7a

Please sign in to comment.