feat: makes sentry more configurable

This commit is contained in:
Brock H Caldwell
2025-11-08 14:38:55 -06:00
parent 2315b995e0
commit 7dd40b4525
8 changed files with 47 additions and 10 deletions

View File

@@ -112,4 +112,12 @@ class UtilExtension
return new EpisodeIdDto($season, $episode);
}
#[AsTwigFunction('sentry_enabled')]
public function sentryEnabled(): bool
{
$sentryConfig = $this->config->getSentryConfig();
return $sentryConfig['javascript_url'] !== null &&
$sentryConfig['javascript_url'] !== '';
}
}