mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-01-05 05:50:32 +01:00
Fix js error on capslock checking
This commit is contained in:
parent
9c917ab1cc
commit
97059cbf8d
@ -64,7 +64,9 @@
|
||||
})
|
||||
|
||||
function checkCapsLock(event) {
|
||||
hasCapsLockOn.value = event.getModifierState('CapsLock') ? true : false
|
||||
if (typeof event.getModifierState === 'function') {
|
||||
hasCapsLockOn.value = event.getModifierState('CapsLock') ? true : false
|
||||
}
|
||||
}
|
||||
|
||||
function setFieldType(event) {
|
||||
|
Loading…
Reference in New Issue
Block a user