Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update assets/js/tabs.js based on suggested change
Using const for objects

Co-authored-by: Niels Bauman <33722607+nielsbauman@users.noreply.github.com>
  • Loading branch information
theangryhobbit and nielsbauman authored Apr 1, 2021
commit 745041f5355391cba8c6407369b88bbbb466fbb9
6 changes: 3 additions & 3 deletions assets/js/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ window.addEventListener('load', function () {
link.addEventListener('click', function (event) {
event.preventDefault();

liTab = link.parentNode;
ulTab = liTab.parentNode;
position = getChildPosition(liTab);
const liTab = link.parentNode;
const ulTab = liTab.parentNode;
const position = getChildPosition(liTab);
if (liTab.className.includes('active')) {
return;
}
Expand Down