From 90c50f1282a265f0b039345795654ad06e5aab85 Mon Sep 17 00:00:00 2001 From: Dimitri Gigot Date: Thu, 26 Mar 2020 13:44:19 +0000 Subject: [PATCH] remove comment --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index dbba7b95e..d08d98cba 100644 --- a/index.js +++ b/index.js @@ -254,7 +254,7 @@ function showTab(tabname) { var chips = Array.from(document.querySelectorAll('.chip')).map(chip => chip.attributes.filterid.value) var hash = window.location.hash ? window.location.hash.slice(1) : ''; -var activeFilter = !!~chips.indexOf(hash) ? hash : ''//window.location.hash ? window.location.hash.slice(1) : ''; +var activeFilter = !!~chips.indexOf(hash) ? hash : ''; var currentSearch = ''; function refreshFilter(){ @@ -517,7 +517,6 @@ Comms.watchConnectionChange(handleConnectionChange); var filtersContainer = document.querySelector("#librarycontainer .filter-nav"); filtersContainer.addEventListener('click', ({ target }) => { - //if (!target.hasAttribute('filterid')) return; if (target.classList.contains('active')) return; activeFilter = target.getAttribute('filterid') || '';