]> git.r.bdr.sh - rbdr/junction/blobdiff - extension/media.js
Refactor server code
[rbdr/junction] / extension / media.js
index 33c6feecc969e696df0e849a315cbc364f05961b..c13c6f12aeb13dd03ef3e40969a8bb4ae8d11948 100644 (file)
@@ -1,10 +1,8 @@
-'use strict';
-
 const internals = {
   mediaStream: null
 };
 
 const internals = {
   mediaStream: null
 };
 
-module.exports = {
+export default {
   async start() {
 
     internals.mediaStream = internals.mediaStream || await navigator.mediaDevices.getUserMedia({
   async start() {
 
     internals.mediaStream = internals.mediaStream || await navigator.mediaDevices.getUserMedia({