diff --git a/package.json b/package.json index 21cb6011..fcb82ba9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.2.5-a", + "version": "0.2.5-b", "keywords": [ "Remote Management", "Intel AMT", diff --git a/views/messenger.handlebars b/views/messenger.handlebars index c946dab6..3aac4eeb 100644 --- a/views/messenger.handlebars +++ b/views/messenger.handlebars @@ -116,14 +116,13 @@ // 0 = nomedia, 1 = miconly, 2 = mic&cam function getUserMediaSupport(func) { try { - navigator.mediaDevices.enumerateDevices() - .then(devices => { + navigator.mediaDevices.enumerateDevices().then(function (devices) { try { var mic = 0, cam = 0; - devices.forEach(device => { + devices.forEach(function (device) { if (device.kind === 'audioinput') { mic = 1; } if (device.kind === 'videoinput') { cam = 1; } - }) + }); if (mic == 0) { func(0); } func(mic + cam); } catch (ex) { }