fix background setter

This commit is contained in:
Iris Lightshard 2024-03-18 13:09:11 -06:00
parent 5bb05a9a23
commit 7d876d8419
Signed by: Iris Lightshard
GPG key ID: 688407174966CAF3

View file

@ -141,10 +141,9 @@ function resetBG(screen) {
const dataUrl = saveData[screen + "Screen"];
if (dataUrl) {
rule.style.setProperty("background", `url('${dataUrl}`);
rule.style.setProperty("background-size", "cover");
rule.style.setProperty("background-attachment", "fixed");
rule.style.setProperty("background", `url('${dataUrl}')`);
rule.style.setProperty("background-size", "cover");
rule.style.setProperty("background-attachment", "fixed");
}
}