From 3d83db29b21283560c554077eb940c4388e3c4f6 Mon Sep 17 00:00:00 2001 From: maxrosenblattl Date: Fri, 16 Aug 2024 10:18:24 +0200 Subject: [PATCH] Transfer `reportingIsEnabled` to H5PIntegration --- src/h5p-standalone.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/h5p-standalone.ts b/src/h5p-standalone.ts index 05f164d..27c2209 100644 --- a/src/h5p-standalone.ts +++ b/src/h5p-standalone.ts @@ -52,6 +52,7 @@ interface Options { contentUserData?: H5PContent['contentUserData']; saveFreq?: number | false; postUserStatistics?: boolean; + reportingIsEnabled?: boolean; ajax?: { setFinishedUrl?: string; @@ -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') {