Skip to content

Commit 86c2d0a

Browse files
committed
Camera switching done final
1 parent 9b67473 commit 86c2d0a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

backend/voting/static/js/voting.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ $(document).ready(function () {
2727
camNo = 1;
2828
else
2929
camNo = 0;
30-
scanner.stop();
31-
startCam();
30+
scanner.stop().then(()=>{startCam();});
3231
})
3332

3433
$('.modal').modal({

0 commit comments

Comments
 (0)