From 7d105088fe6c4c00d0da06ac0b5b8693567e39a4 Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Fri, 26 Nov 2021 12:15:06 -0800 Subject: [PATCH] Minor codereview fixes. --- src/components/thumbnail-carousel.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/components/thumbnail-carousel.ts b/src/components/thumbnail-carousel.ts index a50c6f27..6bc62704 100644 --- a/src/components/thumbnail-carousel.ts +++ b/src/components/thumbnail-carousel.ts @@ -65,13 +65,6 @@ export class FrigateCardThumbnailCarousel extends LitElement { > `; } - - /** - * Get element styles. - */ - // static get styles(): CSSResultGroup { - // return unsafeCSS(viewerStyle); - // } } @customElement('frigate-card-thumbnail-carousel-core') @@ -84,7 +77,7 @@ export class FrigateCardThumbnailCarouselCore extends FrigateCardCarousel { @property({ attribute: false }) set config(config: ThumbnailsControlConfig | undefined) { if (config) { - if (config && (config.size !== undefined && config.size != null)) { + if (config && (config.size !== undefined && config.size !== null)) { this.style.setProperty('--frigate-card-carousel-thumbnail-size', config.size); } this._config = config;