Update view for new lazyload signature.
This commit is contained in:
@@ -274,9 +274,9 @@ export class FrigateCardViewerCarousel extends FrigateCardMediaCarousel {
|
|||||||
return [
|
return [
|
||||||
...super._getPlugins(),
|
...super._getPlugins(),
|
||||||
Lazyload({
|
Lazyload({
|
||||||
lazyloadCallback: this.viewerConfig?.lazy_load
|
...(this.viewerConfig?.lazy_load && {
|
||||||
? this._lazyloadSlide.bind(this)
|
lazyLoadCallback: this._lazyloadSlide.bind(this),
|
||||||
: undefined,
|
}),
|
||||||
}),
|
}),
|
||||||
AutoMediaPlugin({
|
AutoMediaPlugin({
|
||||||
playerSelector: 'frigate-card-ha-hls-player',
|
playerSelector: 'frigate-card-ha-hls-player',
|
||||||
|
|||||||
Reference in New Issue
Block a user