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 +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/unpkg/easyproctor.min.js +15 -14
- package/unpkg/easyproctor.min.js.map +7 -0
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
|
}
|