configure fetchKeepalive

This commit is contained in:
2023-03-03 10:28:52 -05:00
parent 27fffa96ad
commit 7d5da3bd78
13 changed files with 31 additions and 24 deletions

5
dist/scorm-again.js vendored
View File

@@ -687,7 +687,8 @@ var BaseAPI = /*#__PURE__*/function () {
break;
}
}
},
fetchKeepalive: function fetchKeepalive() {}
}
});
@@ -1803,7 +1804,7 @@ var BaseAPI = /*#__PURE__*/function () {
'Content-Type': settings.commitRequestDataType
}),
credentials: settings.xhrWithCredentials ? 'include' : undefined,
keepalive: true
keepalive: settings.fetchKeepalive()
});
result = {};
result.result = global_constants.SCORM_TRUE;