From c1168c7ee848c554c5a280c9e884f9f1614e3bd8 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 14 Dec 2021 10:10:52 +0100 Subject: [PATCH] Beautify file --- core/core.js.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/core.js.php b/core/core.js.php index cb600efb..060f9fdc 100644 --- a/core/core.js.php +++ b/core/core.js.php @@ -375,10 +375,12 @@ core.start = function() { var heightpx = "getdata(['theme','header','height']);?>"; var height = heightpx.substr(0,heightpx.length-2); var ratio = width / height; - var feature = "getdata(['theme','header','feature']);?>"; if ( ($(window).width() / ratio) <= height) { + var feature = "getdata(['theme','header','feature']);?>"; $("header").height( $(window).width() / ratio ); - if( feature !== "feature"){ $("header").css("line-height", $(window).width() / ratio + "px")}; + if( feature !== "feature"){ + $("header").css("line-height", $(window).width() / ratio + "px"); + }; } } }).trigger("resize");