diff --git a/javascript/freepost.js b/javascript/freepost.js index df13829..ee401d7 100644 --- a/javascript/freepost.js +++ b/javascript/freepost.js @@ -104,7 +104,7 @@ document.addEventListener ('DOMContentLoaded', function() { * - votes sum * - down arrow */ - let vote_sections = document.getElementsByClassName ('vote'); + let vote_sections = document.querySelectorAll ('.vote'); // Bind vote() event to up/down vote arrows for (let i = 0; i < vote_sections.length; i++)