mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-01-21 13:48:54 +01:00
Fix js error on capslock checking
This commit is contained in:
parent
9c917ab1cc
commit
97059cbf8d
@ -64,7 +64,9 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
function checkCapsLock(event) {
|
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) {
|
function setFieldType(event) {
|
||||||
|
Loading…
Reference in New Issue
Block a user