]> _ Git - fluidbook-toolbox-quiz.git/commitdiff
wait #6349 @0:10
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 6 Oct 2023 09:42:21 +0000 (11:42 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 6 Oct 2023 09:42:21 +0000 (11:42 +0200)
js/quiz.resize.js

index bfddaf494e1622e7479caad850c8e20f088ebf63..c5f9f61b9bd0c9f09b976491fb0bbb1ce1f2b4d3 100644 (file)
@@ -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) {