Skip to content

Commit

Permalink
Screenshot
Browse files Browse the repository at this point in the history
Minor code changes
  • Loading branch information
stephan1827 committed Mar 28, 2023
1 parent 7df150f commit 4372e1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brXtended/Screenshot/Screenshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ define([

// Stop video recording
var tracks = video.srcObject.getTracks();
tracks.forEach(function(track) { track.stop()});
tracks.forEach(function(track) {track.stop();});

// Programmatically click the element.
widget.a.click();
Expand Down Expand Up @@ -182,7 +182,7 @@ define([

// Stop video recording
var tracks = video.srcObject.getTracks();
tracks.forEach(function(track) { track.stop()});
tracks.forEach(function(track) {track.stop();});

// Convert image to PNG format
const image_base64 = canvas.toDataURL('image/png').replace(/^data:image\/png;base64,/, "");
Expand Down

0 comments on commit 4372e1c

Please sign in to comment.