From a042782248dfedd16b0115c9d3c1925539c2b983 Mon Sep 17 00:00:00 2001 From: hippoz Date: Sun, 25 Oct 2020 16:24:26 +0200 Subject: [PATCH] whoopsie --- res/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/index.js b/res/index.js index 33d184c..b6c499b 100644 --- a/res/index.js +++ b/res/index.js @@ -69,7 +69,7 @@ const onButtonClick = (buttonId) => { const getButtonFromPathname = (pathname) => { let button = 'button-home'; - for (const [k, v] of buttonMap) { + for (const [k, v] of Object.entries(buttonMap)) { if (v === pathname) { button = k; break;