From 88f90aa7fb5b3f325f0e1558c6c162e44339122d Mon Sep 17 00:00:00 2001 From: Helmut Hackbarth Date: Wed, 22 Sep 2021 09:44:38 +0200 Subject: [PATCH] BUGFIX: https://github.com/t3solution/t3sbootstrap/issues/131 --- Classes/EventListener/AssetRenderer/IsInline.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Classes/EventListener/AssetRenderer/IsInline.php b/Classes/EventListener/AssetRenderer/IsInline.php index 1a5f15e5..33299f8f 100644 --- a/Classes/EventListener/AssetRenderer/IsInline.php +++ b/Classes/EventListener/AssetRenderer/IsInline.php @@ -20,7 +20,12 @@ class IsInline public function __invoke(BeforeJavaScriptsRenderingEvent $event): void { - if (ApplicationType::fromRequest($GLOBALS['TYPO3_REQUEST'])->isBackend()) { + if (($GLOBALS['TYPO3_REQUEST'] ?? null) instanceof ServerRequestInterface + && ApplicationType::fromRequest($GLOBALS['TYPO3_REQUEST'])->isBackend()) { + return; + } + + if (defined('TYPO3') && ApplicationType::fromRequest($GLOBALS['TYPO3_REQUEST'])->isBackend()) { return; }