From 3421bce90a362896d50a9fc0a7b1d670c0719006 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 23 Nov 2023 15:21:57 +0100 Subject: [PATCH] wip #6508 @0.25 --- resources/quiz/js/app.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/quiz/js/app.js b/resources/quiz/js/app.js index 9544ab99f..e6431f301 100644 --- a/resources/quiz/js/app.js +++ b/resources/quiz/js/app.js @@ -20,8 +20,12 @@ window.$ = window.jQuery = $; } let disable = false; - if (window.parent !== undefined && window.parent.fluidbook !== undefined) { - disable = true; + try { + if (window.parent !== undefined && window.parent.fluidbook !== undefined) { + disable = true; + } + } catch (e) { + } cubeSCORM.initScorm(disable); -- 2.39.5