From 19cb6fc99c22f426e30301c62ebfdfbb0496cb25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraj=20Nyi=CC=81ri?= Date: Sat, 1 May 2021 20:38:31 +0200 Subject: [PATCH] Update: Max count raised --- www/content-card-example.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/content-card-example.js b/www/content-card-example.js index 12756fd..1f5e555 100644 --- a/www/content-card-example.js +++ b/www/content-card-example.js @@ -20,9 +20,9 @@ class ContentCardExample extends HTMLElement { this.appendChild(card); this.content.innerHTML = ""; var count = 0; - var maxCount = 20; + var maxCount = false; this.data.Movies.some((movieData) => { - if (count < maxCount) { + if (count < maxCount || !maxCount) { count++; this.content.appendChild( this.getMovieElement(movieData, hass, this.data.server_id)