easyproctor 0.0.26 → 0.0.27
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 +8 -4
- package/index.js +8 -4
- package/package.json +1 -1
- package/unpkg/easyproctor.min.js +10 -10
package/esm/index.js
CHANGED
|
@@ -8408,9 +8408,14 @@ function useProctoring(proctoringOptions, proctoringConfig) {
|
|
|
8408
8408
|
azureBlobUrl = proctoringConfig.azureBlobUrl;
|
|
8409
8409
|
setBaseUrl(proctoringConfig.baseUrl);
|
|
8410
8410
|
} else {
|
|
8411
|
-
|
|
8412
|
-
|
|
8413
|
-
|
|
8411
|
+
const config = await makeRequest({
|
|
8412
|
+
url: `/AzureKey`,
|
|
8413
|
+
method: "GET",
|
|
8414
|
+
jwt: proctoringOptions.token
|
|
8415
|
+
});
|
|
8416
|
+
setConfiguration(config.account, config.containerName, config.sas);
|
|
8417
|
+
azureBlobUrl = config.azureBlobUrl;
|
|
8418
|
+
setBaseUrl(config.baseUrl);
|
|
8414
8419
|
}
|
|
8415
8420
|
if (!allowMultipleMonitors) {
|
|
8416
8421
|
const hasMultipleMonitors = await checkIfhasMultipleMonitors();
|
|
@@ -8493,7 +8498,6 @@ function useProctoring(proctoringOptions, proctoringConfig) {
|
|
|
8493
8498
|
const { onProgress } = options;
|
|
8494
8499
|
const record = await getRecord("exams");
|
|
8495
8500
|
if (!record) {
|
|
8496
|
-
console.log("OXE");
|
|
8497
8501
|
throw PROCTORING_NOT_STARTED;
|
|
8498
8502
|
}
|
|
8499
8503
|
onStopSharingScreenCallback = void 0;
|
package/index.js
CHANGED
|
@@ -8748,9 +8748,14 @@ function useProctoring(proctoringOptions, proctoringConfig) {
|
|
|
8748
8748
|
azureBlobUrl = proctoringConfig.azureBlobUrl;
|
|
8749
8749
|
setBaseUrl(proctoringConfig.baseUrl);
|
|
8750
8750
|
} else {
|
|
8751
|
-
|
|
8752
|
-
|
|
8753
|
-
|
|
8751
|
+
const config = await makeRequest({
|
|
8752
|
+
url: `/AzureKey`,
|
|
8753
|
+
method: "GET",
|
|
8754
|
+
jwt: proctoringOptions.token
|
|
8755
|
+
});
|
|
8756
|
+
setConfiguration(config.account, config.containerName, config.sas);
|
|
8757
|
+
azureBlobUrl = config.azureBlobUrl;
|
|
8758
|
+
setBaseUrl(config.baseUrl);
|
|
8754
8759
|
}
|
|
8755
8760
|
if (!allowMultipleMonitors) {
|
|
8756
8761
|
const hasMultipleMonitors = await checkIfhasMultipleMonitors();
|
|
@@ -8833,7 +8838,6 @@ function useProctoring(proctoringOptions, proctoringConfig) {
|
|
|
8833
8838
|
const { onProgress } = options;
|
|
8834
8839
|
const record = await getRecord("exams");
|
|
8835
8840
|
if (!record) {
|
|
8836
|
-
console.log("OXE");
|
|
8837
8841
|
throw PROCTORING_NOT_STARTED;
|
|
8838
8842
|
}
|
|
8839
8843
|
onStopSharingScreenCallback = void 0;
|