mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
fix: make sure umap.properties.slideshow is defined (#2583)
This commit is contained in:
commit
dcf5f1a763
2 changed files with 2 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
|||
"es6": true
|
||||
},
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 2020,
|
||||
"ecmaVersion": 2021,
|
||||
"sourceType": "module"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,6 +18,7 @@ export default class Slideshow extends WithTemplate {
|
|||
this._umap = umap
|
||||
this._id = null
|
||||
this.CLASSNAME = 'umap-slideshow-active'
|
||||
this._umap.properties.slideshow ??= {}
|
||||
this.load()
|
||||
this._current = null
|
||||
|
||||
|
|
Loading…
Reference in a new issue