X-Git-Url: https://git.r.bdr.sh/rbdr/junction/blobdiff_plain/eadfca7b00e2fb48ffd6b2a0e06c2b6d7e427679..80172072ed99b14e3d5b435b097888a4621f78bc:/extension/media.js diff --git a/extension/media.js b/extension/media.js index 33c6fee..c13c6f1 100644 --- a/extension/media.js +++ b/extension/media.js @@ -1,10 +1,8 @@ -'use strict'; - const internals = { mediaStream: null }; -module.exports = { +export default { async start() { internals.mediaStream = internals.mediaStream || await navigator.mediaDevices.getUserMedia({