diff --git a/client/src/Pages/StatusPage/Status/index.tsx b/client/src/Pages/StatusPage/Status/index.tsx index 7700f1c29..4fbf6179a 100644 --- a/client/src/Pages/StatusPage/Status/index.tsx +++ b/client/src/Pages/StatusPage/Status/index.tsx @@ -21,6 +21,7 @@ import { getStatusPagePublicUrl, isCustomDomainHost, } from "@/Utils/statusPageUrl"; +import { cssReferencesExternalResource } from "@/Utils/customCss"; import { HeaderStatusPageControls } from "@/Pages/StatusPage/Status/Components/HeaderStatusPageControls"; import { StatusPageThemeProvider } from "@/Pages/StatusPage/Status/themes/StatusPageThemeProvider"; import { @@ -132,6 +133,10 @@ const StatusPageView = () => { // Public route: render directly on the viewport, themed background covers everything. if (isPublic) { const themeConfig = THEME_CONFIGS[resolveStatusPageTheme(statusPage.theme)]; + const customCss = + statusPage.customCSS && !cssReferencesExternalResource(statusPage.customCSS) + ? statusPage.customCSS + : ""; return ( { timezone={statusPage.timezone} paintBody > + {customCss && }