From a51fa4fdf2b69e1326614bcc6c392ad487498ae3 Mon Sep 17 00:00:00 2001 From: Yousef Soliman Date: Thu, 2 Apr 2020 12:11:20 +0200 Subject: [PATCH] fix return last record as record not array --- src/lib/recorder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/recorder.js b/src/lib/recorder.js index acd2c52..a816834 100644 --- a/src/lib/recorder.js +++ b/src/lib/recorder.js @@ -101,7 +101,7 @@ export default class { } lastRecord () { - return this.records.slice(-1) + return this.records.slice(-1).pop() } _micCaptured (stream) {