From: Vincent Vanwaelscappel Date: Fri, 6 Oct 2023 09:42:21 +0000 (+0200) Subject: wait #6349 @0:10 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=667cf0bf9be96d85fac9245bf6f044dbb50886dc;p=fluidbook-toolbox-quiz.git wait #6349 @0:10 --- diff --git a/js/quiz.resize.js b/js/quiz.resize.js index bfddaf4..c5f9f61 100644 --- a/js/quiz.resize.js +++ b/js/quiz.resize.js @@ -133,7 +133,8 @@ QuizResize.prototype = { updateBackground: function (b, v) { let c = ''; - if (v === undefined) { + if (v === undefined || v === null || v === '' || v.indexOf('.') === -1) { + $(b).html(''); return; } if (v.toLowerCase().indexOf('.json') >= 0) {