Skip to content

Commit

Permalink
pull capturebox params from url query params
Browse files Browse the repository at this point in the history
and if param not present, default to full frame
  • Loading branch information
benswift committed Nov 1, 2024
1 parent 6cbc8e1 commit 397cc2c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion assets/js/webcam_stream_hook.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const WebcamStreamHook = {
mounted() {
this.captureInterval = parseInt(this.el.dataset.captureInterval);
this.captureBox = JSON.parse(this.el.dataset.captureBox);

// Parse capture box from URL query params
const urlParams = new URLSearchParams(window.location.search);
Expand Down

0 comments on commit 397cc2c

Please sign in to comment.