diff options
| author | meow <woem> | 2022-04-20 12:13:16 +0300 |
|---|---|---|
| committer | meow <woem> | 2022-04-25 10:14:24 +0300 |
| commit | 38ef0b10e79232de1c6fa2062d9983e4a944f6be (patch) | |
| tree | f56d155efafe0cace0e5b98ed905961dd85832bd /assets/js/handlers.js | |
| parent | c72d3c4a0ea9329fa455d5c066aff598c307d04d (diff) | |
| download | invidious-38ef0b10e79232de1c6fa2062d9983e4a944f6be.tar.gz invidious-38ef0b10e79232de1c6fa2062d9983e4a944f6be.tar.bz2 invidious-38ef0b10e79232de1c6fa2062d9983e4a944f6be.zip | |
eqeqeq
Diffstat (limited to '')
| -rw-r--r-- | assets/js/handlers.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/assets/js/handlers.js b/assets/js/handlers.js index 84e1d7c2..1bf11364 100644 --- a/assets/js/handlers.js +++ b/assets/js/handlers.js @@ -102,8 +102,8 @@ xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xhr.onreadystatechange = function () { - if (xhr.readyState == 4) { - if (xhr.status != 200) { + if (xhr.readyState === 4) { + if (xhr.status !== 200) { count.innerText = parseInt(count.innerText) + 1; row.style.display = ''; } @@ -131,8 +131,8 @@ xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xhr.onreadystatechange = function () { - if (xhr.readyState == 4) { - if (xhr.status != 200) { + if (xhr.readyState === 4) { + if (xhr.status !== 200) { count.innerText = parseInt(count.innerText) + 1; row.style.display = ''; } @@ -159,7 +159,7 @@ } // Focus search bar on '/' - if (event.key == "/") { + if (event.key === "/") { document.getElementById('searchbox').focus(); event.preventDefault(); } |
