Skip to content

Commit

Permalink
fix: lenght -> length
Browse files Browse the repository at this point in the history
Signed-off-by: shrihanDev <[email protected]>
  • Loading branch information
shrihankp committed Sep 20, 2022
1 parent ea7b216 commit 03c0933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ ws.onmessage = (msg) => {
document.getElementById('search').addEventListener('keyup', () => {
const searchBox = document.getElementById('search');
const searchText = searchBox.value.toLowerCase();
if (searchText.lenght === 0) return;
if (searchText.length === 0) return;

for (const e of document.getElementsByTagName('li'))
e.style.display = 'none';
Expand Down

0 comments on commit 03c0933

Please sign in to comment.