diff --git a/src/index.js b/src/index.js index f6fc361..ba82208 100644 --- a/src/index.js +++ b/src/index.js @@ -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; })