From e1954aa4f438b07868e47054767e2644462d7c18 Mon Sep 17 00:00:00 2001 From: villhellm Date: Tue, 7 Jul 2020 15:26:21 -0700 Subject: [PATCH] second test --- dist/animated-background.js | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/dist/animated-background.js b/dist/animated-background.js index 334665a..525a89a 100644 --- a/dist/animated-background.js +++ b/dist/animated-background.js @@ -336,9 +336,6 @@ function getEntityState(entity) { //main render function function renderBackgroundHTML() { - if(!View_Layout){ - return; - } var current_config = currentConfig(); var state_url = ""; var temp_enabled = true; @@ -483,7 +480,8 @@ function renderBackgroundHTML() { if (!current_config.entity) { STATUS_MESSAGE("Applying default background", true); } - html_to_render = ` -
+ }`; + var div = document.createElement("div"); + div.id = "background-video"; + div.className = "bg-wrap" + div.innerHTML = `