fix: admin/custom: 'style' section should affect only frontend and not admin-panel
Massimo Melina committed
Nov 5, 2024 at 20:14 UTC
b6e6e84b8bd952112e27d3950d1c0fe0781d0ffe
1 file changed
+1
-1
src/serveGuiFiles.ts
+1
-1
@@ -131,7 +131,7 @@ async function treatIndex(ctx: Koa.Context, filesUri: string, body: string) {
131
return typeof v === 'string' && `\n--${pluginName}-${k}: ${v};`
132
}).filter(Boolean).join('')).join('')}
133
}
134
- ${getSection('style')}
134
+ ${isFrontend && getSection('style')}
135
</style>
136
${isFrontend && mapPlugins((plug,id) =>
137
plug.frontend_css?.map(f =>