mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 06:37:18 +01:00
Fixed styling on update notice. Added private mode.
This commit is contained in:
parent
314bbee717
commit
dd88b1d901
6 changed files with 16 additions and 6 deletions
|
|
@ -6,7 +6,7 @@ export default function handler(req: NextApiRequest, res: NextApiResponse) {
|
|||
if (process.env.NODE_ENV === 'production') {
|
||||
res.setHeader('content-type', 'text/javascript');
|
||||
|
||||
if (process.env.DISABLE_TELEMETRY) {
|
||||
if (process.env.DISABLE_TELEMETRY || process.env.PRIVATE_MODE) {
|
||||
return res.send('/* telemetry disabled */');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue