easyproctor 0.0.35 → 0.0.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/esm/index.js CHANGED
@@ -73,7 +73,7 @@ async function startScreenCapture(buffer, options) {
73
73
  const isFirefox = navigator.userAgent.indexOf("Firefox") > -1;
74
74
  if (isFirefox) {
75
75
  const hasMultipleMonitors = !tracks.find((el) => el.label == "Primary Monitor");
76
- if (hasMultipleMonitors) {
76
+ if (hasMultipleMonitors && allowOnlyFirstMonitor) {
77
77
  throw MULTIPLE_MONITORS_DETECTED;
78
78
  }
79
79
  }
package/index.js CHANGED
@@ -8436,7 +8436,7 @@ async function startScreenCapture(buffer, options) {
8436
8436
  const isFirefox = navigator.userAgent.indexOf("Firefox") > -1;
8437
8437
  if (isFirefox) {
8438
8438
  const hasMultipleMonitors = !tracks.find((el) => el.label == "Primary Monitor");
8439
- if (hasMultipleMonitors) {
8439
+ if (hasMultipleMonitors && allowOnlyFirstMonitor) {
8440
8440
  throw MULTIPLE_MONITORS_DETECTED;
8441
8441
  }
8442
8442
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easyproctor",
3
- "version": "0.0.35",
3
+ "version": "0.0.36",
4
4
  "description": "Modulo web de gravação do EasyProctor",
5
5
  "main": "./index.js",
6
6
  "module": "./esm/index.js",