]> _ Git - fluidbook-toolbox.git/commitdiff
wait #7746 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 18 Sep 2025 10:12:03 +0000 (12:12 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 18 Sep 2025 10:12:03 +0000 (12:12 +0200)
app/Http/Controllers/Admin/Operations/FluidbookPublication/PreviewOperation.php

index f58d8fe8f199f45e18a89199c2a813ef2885b56b..ce4b78741701c332a0a6c6fa0a71f8434da8aebd 100644 (file)
@@ -150,6 +150,11 @@ trait PreviewOperation
             }
             abort(404, __('Ce fichier n\'existe pas'));
         }
+        if ($isScorm && $path === 'index.html') {
+            $html = file_get_contents($relayPath);
+            $html = str_replace('<head>', '<head><script>FORCE_SCORM=true;</script>', $html);
+            return $html;
+        }
         return XSendFileController::sendfile($relayPath);
     }