1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 01:48:21 +02:00

Use === in JS

This commit is contained in:
Alexandre Iooss
2020-09-05 08:38:31 +02:00
parent bad5fe3c22
commit afc367cfb8
2 changed files with 6 additions and 6 deletions

View File

@ -38,8 +38,8 @@ function afterKonami () {
// Register custom event
document.addEventListener('keydown', (e) => {
cursor = (e.keyCode == KONAMI_CODE[cursor]) ? cursor + 1 : 0
if (cursor == KONAMI_CODE.length) {
cursor = (e.keyCode === KONAMI_CODE[cursor]) ? cursor + 1 : 0
if (cursor === KONAMI_CODE.length) {
afterKonami()
}
})