diff --git a/main.html b/main.html index def6765..004467e 100644 --- a/main.html +++ b/main.html @@ -181,7 +181,7 @@ itemButton.title = itemValue; itemButton.addEventListener('click', () => { const selectedItemValue = itemButton.title; - eval(selectedItemValue); + runScript(selectedItemValue); }); const removeButton = document.createElement('button');