Fix regression from fixing issue #9 (cooldown wasn't actually enforced)
This commit is contained in:
parent
5eb299b7c7
commit
1ce22400b5
@ -233,6 +233,7 @@ function closemodal(modalselector) {
|
||||
var scanCodeEnabled = true;
|
||||
|
||||
function startCooldown() {
|
||||
scanCodeEnabled = false;
|
||||
// don't do animation on old stuff
|
||||
if (getPlatform() === DEVICE_ANDROID && compareVersions(getDeviceVersion(), "4.4") < 0) {
|
||||
fallback_anim('#codescanbtn', 0, CODE_SCAN_COOLDOWN_SECONDS, 1000);
|
||||
|
Reference in New Issue
Block a user