Skip to content

Commit

Permalink
Update document.addEventListener
Browse files Browse the repository at this point in the history
  • Loading branch information
trangrta committed Dec 19, 2024
1 parent 987a432 commit 0df97ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/rt-html-abs.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,8 @@ document.addEventListener('DOMContentLoaded', () => {
buttons.forEach(button => {
button.addEventListener('click', (e) => {
const handler = e.target.getAttribute('onclick');
if (handler) {
eval(handler.replace('this', 'e.target'));
// if (handler) {
// eval(handler.replace('this', 'e.target'));
}
});
});
Expand Down

0 comments on commit 0df97ef

Please sign in to comment.