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

fixed DSLR preview stop time bug #448

Merged
merged 1 commit into from
Jun 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/js/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down