From e0fc37d48ab995bca55de83761d36538320864d5 Mon Sep 17 00:00:00 2001 From: Fluffy Date: Sat, 24 Jun 2023 21:02:08 +0000 Subject: [PATCH] Deepsource JS issues --- TFR/server/static/js/search.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/TFR/server/static/js/search.js b/TFR/server/static/js/search.js index 15f1312..70d782b 100644 --- a/TFR/server/static/js/search.js +++ b/TFR/server/static/js/search.js @@ -1,5 +1,3 @@ -let typingTimer; - function showHint() { const search = document.querySelector('#search'); const searchPos = search.getBoundingClientRect(); @@ -69,6 +67,7 @@ function getSearch() { window.onload = () => { + let typingTimer; let search = document.querySelector('#search'); if (search === null) {