From d294e11c0b0ac4f934b0ae7f8bd9f4189f1fddba Mon Sep 17 00:00:00 2001 From: DIY89 Date: Sat, 11 Jun 2022 17:52:46 +0200 Subject: [PATCH] fixed DSLR preview stop time bug Change-Id: I81649ef401e4c2685210029146c6fa5a2632121c --- src/js/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/core.js b/src/js/core.js index 8dd91904c..323687fdd 100644 --- a/src/js/core.js +++ b/src/js/core.js @@ -979,7 +979,7 @@ const photoBooth = (function () { api.startCountdown = function (start, element, cb) { let count = 0; let current = start; - const stop = start > config.preview.stop_time ? start - config.preview.stop_time : start; + const stop = start > parseInt(config.preview.stop_time, 10) ? start - parseInt(config.preview.stop_time, 10) : start; function timerFunction() { element.text(Number(current) + Number(config.picture.cntdwn_offset));