X-Git-Url: https://git.r.bdr.sh/rbdr/junction/blobdiff_plain/1d73636a839a4efe8e12cffb33714bc60c58dc4b..8a872a93634a516782d05934188ba2db3849fec9:/extension/media.js?ds=sidebyside 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({