Skip to content

Commit

Permalink
Transfer reportingIsEnabled to H5PIntegration
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrosenblattl authored Aug 16, 2024
1 parent e36067e commit 3d83db2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/h5p-standalone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ interface Options {
contentUserData?: H5PContent['contentUserData'];
saveFreq?: number | false;
postUserStatistics?: boolean;
reportingIsEnabled?: boolean;

ajax?: {
setFinishedUrl?: string;
Expand Down Expand Up @@ -255,7 +256,8 @@ export class H5PStandalone {

H5PIntegration.url = contentId;
H5PIntegration.urlLibraries = librariesPath;
H5PIntegration.postUserStatistics = !!options.postUserStatistics
H5PIntegration.postUserStatistics = !!options.postUserStatistics;
H5PIntegration.reportingIsEnabled = !!options.reportingIsEnabled;

//since the default is false, only set if it's a number?
if (options.saveFreq && typeof options.saveFreq === 'number') {
Expand Down

0 comments on commit 3d83db2

Please sign in to comment.