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:
@ -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()
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user