More tests and fixes
This commit is contained in:
@@ -609,7 +609,6 @@ export default class BaseAPI {
|
||||
this.throwSCORMError(203);
|
||||
}
|
||||
}
|
||||
return;
|
||||
} else {
|
||||
return refObject;
|
||||
}
|
||||
@@ -776,6 +775,14 @@ export default class BaseAPI {
|
||||
return JSON.parse(JSON.stringify(cmi));
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the current total time as total_time + session_time
|
||||
* APIs that inherit BaseAPI should override this function
|
||||
*/
|
||||
getCurrentTotalTime() {
|
||||
this.cmi.getCurrentTotalTime();
|
||||
}
|
||||
|
||||
/**
|
||||
* Throws a SCORM error
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user