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