From 1a906b00e722d3c4f2193328cb9e4fb7b96fc8e2 Mon Sep 17 00:00:00 2001 From: Cal-Hagner <44558033+Cal-Hagner@users.noreply.github.com> Date: Sun, 13 Oct 2019 07:48:18 -0400 Subject: [PATCH] Fix Travis CI fail issues Travis CI was failing tests due to syntactical errors; fixed the errors (indentation with 4 spaces, etc). --- src/web/waiters/RecipeWaiter.mjs | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/web/waiters/RecipeWaiter.mjs b/src/web/waiters/RecipeWaiter.mjs index 8080d4eb..ecd27a2d 100755 --- a/src/web/waiters/RecipeWaiter.mjs +++ b/src/web/waiters/RecipeWaiter.mjs @@ -630,18 +630,17 @@ class RecipeWaiter { // Hide recipe controls when output is maximised if (document.getElementById("i") === "fullscreen") { - document.getElementById("controls").style.display = "none"; - } - else { - // Show recipe controls if they are not already shown - document.getElementById("controls").style.display = "inherit"; + document.getElementById("controls").style.display = "none"; + } else { + // Show recipe controls if they are not already shown + document.getElementById("controls").style.display = "inherit"; - // Scale controls to fit pane width - const controls = document.getElementById("controls"); - const controlsContent = document.getElementById("controls-content"); - const scale = (controls.clientWidth - 1) / controlsContent.scrollWidth; + // Scale controls to fit pane width + const controls = document.getElementById("controls"); + const controlsContent = document.getElementById("controls-content"); + const scale = (controls.clientWidth - 1) / controlsContent.scrollWidth; - controlsContent.style.transform = `translate(-50%, -50%) scale(${scale})`; + controlsContent.style.transform = `translate(-50%, -50%) scale(${scale})`; } }