Skip to content

Commit

Permalink
Merge pull request #4 from netlogix/bugfix/ensure-typo3-request-is-set
Browse files Browse the repository at this point in the history
  • Loading branch information
saschanowak committed Feb 6, 2024
2 parents 9ed7f2b + 68c8557 commit 4ceaf9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Classes/EventListener/AddCdnToResource.php
Expand Up @@ -24,6 +24,7 @@ public function __invoke(GeneratePublicUrlForResourceEvent $event): void
$resource = $event->getResource();
if (
!($driver instanceof LocalDriver) ||
!isset($GLOBALS['TYPO3_REQUEST']) ||
ApplicationType::fromRequest($GLOBALS['TYPO3_REQUEST'])->isBackend()
) {
return;
Expand Down

0 comments on commit 4ceaf9a

Please sign in to comment.