fixed lint warning

This commit is contained in:
Jack 2021-10-13 20:26:59 +01:00
parent b21fb91dcb
commit 6fcffeb8f3

View file

@ -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,
});
}
}