-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rm agent because the browser sends one
- Loading branch information
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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', | ||
|