Skip to content

Commit

Permalink
build: improved more script
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobruni committed Oct 18, 2023
1 parent fed1592 commit 60f3a86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/js/more.js
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ document.addEventListener("DOMContentLoaded", () => {
codeElem.style.minHeight = 14 * count + 1 + "px";
codeElem.style.height = count + "rem";

button.onclick = function (ev) {
button.addEventListener("click", (ev) => {
// stop mobile browsers from zooming when clicking
// buttons repeatedly really fast
ev.preventDefault();
Expand All @@ -728,7 +728,7 @@ document.addEventListener("DOMContentLoaded", () => {
} catch (e) {
console.error(e);
}
};
});

editors.push(editor);
});
Expand Down

0 comments on commit 60f3a86

Please sign in to comment.