Almost there
This commit is contained in:
2
webapp/dist/main.js
vendored
2
webapp/dist/main.js
vendored
File diff suppressed because one or more lines are too long
@@ -11,7 +11,7 @@ function createClimateChart() {
|
||||
let minutesDisplayed = 60;
|
||||
const argsStart = window.location.search.search(/\?minute-span=/);
|
||||
if (argsStart !== -1) {
|
||||
const parsedMins = Number(pathname[12]);
|
||||
const parsedMins = Number(window.location.search[12]);
|
||||
if (!isNaN(parsedMins) && parsedMins > 0) {
|
||||
minutesDisplayed = parsedMins;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user