mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
Forgot the actual check.
This commit is contained in:
parent
a4a6888248
commit
9969c9b6b1
@ -3,6 +3,9 @@ import { TELEMETRY_PIXEL } from 'lib/constants';
|
||||
export default function handler(req, res) {
|
||||
const { v } = req.query;
|
||||
res.setHeader('content-type', 'text/javascript');
|
||||
if (process.env.DISABLE_TELEMETRY) {
|
||||
res.send('/* telemetry disabled */');
|
||||
} else {
|
||||
res.send(
|
||||
`(() => {
|
||||
const i = document.createElement('img');
|
||||
@ -12,3 +15,4 @@ export default function handler(req, res) {
|
||||
})();`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user