Skip to content

Commit

Permalink
Fix record name
Browse files Browse the repository at this point in the history
  • Loading branch information
Kostya Bats committed Oct 28, 2024
1 parent 45dbb1f commit b78f5cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/grabber/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ function runGrabbing(window) {

client.target.addEventListener("record_upload", async ({detail: {recordId}}) => {
for (const recordType of ["desktop", "webcam"]) {
const fileName = path.join(configS.recordingsDirectory ?? ".", `${recordId}_${recordType}.webm`);
fs.readFile(fileName, function (err, data) {
const fileName = `${recordId}_${recordType}.webm`;
fs.readFile(path.join(configS.recordingsDirectory ?? ".", fileName), function (err, data) {
if (!err) {
const fileBlob = new Blob([data], {type: 'video/webm'})
const promise = client.record_upload(fileName, fileBlob)
Expand Down

0 comments on commit b78f5cf

Please sign in to comment.