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