Actually define dest

This commit is contained in:
Jake Howard 2022-10-28 15:15:53 +01:00
parent 7475492399
commit 629b77b6b2
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -15,7 +15,7 @@ const 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 => {
e.dataset.backgroundImage = dest;
})