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;