1
0
mirror of https://github.com/keeweb/keeweb.git synced 2024-06-26 07:39:04 +02:00

fix delay

This commit is contained in:
antelle 2016-04-23 18:34:49 +03:00
parent b16f07b72c
commit 15b25c8395

View File

@ -156,7 +156,7 @@ AutoTypeRunner.prototype.tryParseCommand = function(op) {
if (isNaN(+op.arg)) {
throw 'Bad delay: ' + op.arg;
}
if (op.arg <= 0) {
if (op.arg < 0) {
throw 'Delay requires positive interval';
}
op.arg = +op.arg;