Actually define dest
This commit is contained in:
parent
7475492399
commit
629b77b6b2
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ const FILE_MAPPING = {
|
||||||
};
|
};
|
||||||
|
|
||||||
for (const src in FILE_MAPPING) {
|
for (const src in FILE_MAPPING) {
|
||||||
dest = FILE_MAPPING[src];
|
const dest = FILE_MAPPING[src];
|
||||||
document.querySelectorAll(`[data-background-image='${src}']`).forEach(e => {
|
document.querySelectorAll(`[data-background-image='${src}']`).forEach(e => {
|
||||||
e.dataset.backgroundImage = dest;
|
e.dataset.backgroundImage = dest;
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue