fix background setter
This commit is contained in:
parent
5bb05a9a23
commit
7d876d8419
1 changed files with 3 additions and 4 deletions
|
@ -141,10 +141,9 @@ function resetBG(screen) {
|
||||||
|
|
||||||
const dataUrl = saveData[screen + "Screen"];
|
const dataUrl = saveData[screen + "Screen"];
|
||||||
if (dataUrl) {
|
if (dataUrl) {
|
||||||
|
rule.style.setProperty("background", `url('${dataUrl}')`);
|
||||||
rule.style.setProperty("background", `url('${dataUrl}`);
|
rule.style.setProperty("background-size", "cover");
|
||||||
rule.style.setProperty("background-size", "cover");
|
rule.style.setProperty("background-attachment", "fixed");
|
||||||
rule.style.setProperty("background-attachment", "fixed");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue