X-Git-Url: https://git.r.bdr.sh/rbdr/junction/blobdiff_plain/1d73636a839a4efe8e12cffb33714bc60c58dc4b..8c7fb565690890d57b6af20ad0771a48cf82b4c7:/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({