mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-12-27 11:14:56 +00:00
Ensure terser doesn't tree-shake iso8601-js-period
This commit is contained in:
parent
a45001a75f
commit
90fd9da348
1 changed files with 4 additions and 0 deletions
|
@ -63,6 +63,10 @@ class MapManager {
|
|||
}
|
||||
|
||||
setup_time_dimension() {
|
||||
// Ensure terser doesn't tree-shake iso8601-js-period
|
||||
if(nezasa.iso8601.period)
|
||||
console.debug("iso8601-js-period is loaded.");
|
||||
|
||||
this.layer_time = new L.TimeDimension({
|
||||
period: "PT1H", // 1 hour
|
||||
timeInterval: `2019-01-01T12:00:00Z/${new Date().toISOString()}`
|
||||
|
|
Loading…
Reference in a new issue