Almost there
This commit is contained in:
@@ -46,7 +46,7 @@ class ClimateChart {
|
|||||||
|
|
||||||
private async getInitialDataBlob(): Promise<SnapshotRecords> {
|
private async getInitialDataBlob(): Promise<SnapshotRecords> {
|
||||||
try {
|
try {
|
||||||
const data = await fetch(this.rootUrl + "/data?since" + (new Date().getTime() - this.minutesDisplayed * 60 * 1000));
|
const data = await fetch(this.rootUrl + "/data?since=" + (new Date().getTime() - this.minutesDisplayed * 60 * 1000));
|
||||||
return await data.json();
|
return await data.json();
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user