Fix regression from fixing issue #9 (cooldown wasn't actually enforced)

This commit is contained in:
Skylar Ittner 2016-10-07 19:07:26 -06:00
parent 5eb299b7c7
commit 1ce22400b5

View File

@ -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);