Skip to content

Commit

Permalink
BUGFIX: #131
Browse files Browse the repository at this point in the history
  • Loading branch information
t3solution committed Sep 22, 2021
1 parent d69745b commit 88f90aa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Classes/EventListener/AssetRenderer/IsInline.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 88f90aa

Please sign in to comment.