From dc6b9217a9a3b0c28251a57e0c242d0e2b9130e5 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Thu, 20 Dec 2018 15:55:28 -0800 Subject: [PATCH] Fixed messenger in IE11. --- package.json | 2 +- views/messenger.handlebars | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) 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) { }