remove unnecessary arrow functions

master
Aevann1 2022-11-18 21:34:38 +02:00
parent 446ef58c2c
commit b4448ae926
2 changed files with 12 additions and 16 deletions

View File

@ -180,7 +180,6 @@ function smoothScrollTop()
}
// Click navbar to scroll back to top
(() => {
for (const i of document.querySelectorAll('nav'))
{
i.addEventListener('click', (e) => {
@ -192,7 +191,6 @@ function smoothScrollTop()
smoothScrollTop();
}, false);
}
})();
// Dynamic shadow when the user scrolls
document.addEventListener('scroll',function (event) {

View File

@ -569,7 +569,6 @@
{% endif %}
<script>
(() => {
{% if not v or v.highlightcomments %}
document.addEventListener('DOMContentLoaded', function() {
showNewCommentCounts('{{p.id}}', {{p.comment_count}})
@ -583,7 +582,6 @@
{% endif %}
})
{% endif %}
})()
</script>
{% if success %}