From 629b77b6b22bc7cb89db6521791ef91fb82f3d4f Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 28 Oct 2022 15:15:53 +0100 Subject: [PATCH] Actually define dest --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; })