Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.

Commit 324d6b6

Browse files
DIY89andi34
authored andcommitted
fixed DSLR preview stop time bug
Change-Id: I81649ef401e4c2685210029146c6fa5a2632121c
1 parent 5cb0922 commit 324d6b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ const photoBooth = (function () {
979979
api.startCountdown = function (start, element, cb) {
980980
let count = 0;
981981
let current = start;
982-
const stop = start > config.preview.stop_time ? start - config.preview.stop_time : start;
982+
const stop = start > parseInt(config.preview.stop_time, 10) ? start - parseInt(config.preview.stop_time, 10) : start;
983983

984984
function timerFunction() {
985985
element.text(Number(current) + Number(config.picture.cntdwn_offset));

0 commit comments

Comments
 (0)