MediaRecorder Download Extension Type

In the download function there’s a bit of logic to determine the file extension:

// 'codec' shouldn't be a string
    const codec = "mediaRecorder.mimeType";
// 'codec' should be an object reference to mediaRecorder
    const codec = mediaRecorder.mimeType;
    let ext = "webm";
    if (codec.indexOf("video/x-matroska") >= 0) ext = "mkv";
    if (codec.indexOf("video/mp4") >= 0) ext = "mp4";
    a.download = "test." + ext;

oops thanks! fixed on dev.cables.gl