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

Commit

Permalink
fix: don't access constants before they are defined (fixes camera as …
Browse files Browse the repository at this point in the history
…background)
  • Loading branch information
up-87 authored and andi34 committed Feb 28, 2022
1 parent 9ed9a50 commit 8c5d9a2
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions src/js/core.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
/* globals initPhotoSwipeFromDOM initRemoteBuzzerFromDOM setMainImage remoteBuzzerClient rotaryController globalGalleryHandle photoboothTools */

const photoBooth = (function () {
const PhotoStyle = {
PHOTO: 'photo',
COLLAGE: 'collage',
CHROMA: 'chroma'
},
CameraDisplayMode = {
INIT: 1,
BACKGROUND: 2,
COUNTDOWN: 3
},
PreviewMode = {
NONE: 'none',
DEVICE: 'device_cam',
URL: 'url',
GPHOTO: 'gphoto'
};

const api = {},
loader = $('#loader'),
startPage = $('#start'),
Expand Down Expand Up @@ -52,23 +69,6 @@ const photoBooth = (function () {
continuousCollageTime = config.collage.continuous_time * 1000,
retryTimeout = config.picture.retry_timeout * 1000;

const PhotoStyle = {
PHOTO: 'photo',
COLLAGE: 'collage',
CHROMA: 'chroma'
},
CameraDisplayMode = {
INIT: 1,
BACKGROUND: 2,
COUNTDOWN: 3
},
PreviewMode = {
NONE: 'none',
DEVICE: 'device_cam',
URL: 'url',
GPHOTO: 'gphoto'
};

let timeOut,
isPrinting = false,
takingPic = false,
Expand Down

0 comments on commit 8c5d9a2

Please sign in to comment.