Missing error code for successful sendBeacon commit

This commit is contained in:
Jonathan Putney
2020-06-29 17:13:25 -04:00
parent d1f22df4d7
commit 2e09fde478
4 changed files with 5 additions and 3 deletions

View File

@@ -990,6 +990,7 @@ export default class BaseAPI {
result = {};
if (navigator.sendBeacon(url, blob)) {
result.result = global_constants.SCORM_TRUE;
result.errorCode = 0;
} else {
result.result = global_constants.SCORM_FALSE;
result.errorCode = 101;