From 6fcffeb8f3477bed6d741dbd8e413bb5e28d64e4 Mon Sep 17 00:00:00 2001 From: Jack Date: Wed, 13 Oct 2021 20:26:59 +0100 Subject: [PATCH] fixed lint warning --- src/js/theme-controller.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/js/theme-controller.js b/src/js/theme-controller.js index 57cbd6954..cd9ad66cf 100644 --- a/src/js/theme-controller.js +++ b/src/js/theme-controller.js @@ -186,6 +186,20 @@ export function clearRandom() { randomTheme = null; } +export function applyCustomBackgroundSize() { + if (Config.customBackgroundSize == "max") { + $(".customBackground img").css({ + // width: "calc(100%)", + // height: "calc(100%)", + objectFit: "", + }); + } else if (Config.customBackgroundSize != "") { + $(".customBackground img").css({ + objectFit: Config.customBackgroundSize, + }); + } +} + export function applyCustomBackground() { // $(".customBackground").css({ // backgroundImage: `url(${Config.customBackground})`, @@ -204,17 +218,3 @@ export function applyCustomBackground() { applyCustomBackgroundSize(); } } - -export function applyCustomBackgroundSize() { - if (Config.customBackgroundSize == "max") { - $(".customBackground img").css({ - // width: "calc(100%)", - // height: "calc(100%)", - objectFit: "", - }); - } else if (Config.customBackgroundSize != "") { - $(".customBackground img").css({ - objectFit: Config.customBackgroundSize, - }); - } -}