mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
Fixed XML error in Firefox. Renamed telemetry env var.
This commit is contained in:
parent
934914d249
commit
281671b792
@ -2,7 +2,7 @@ require('dotenv').config();
|
||||
const sendTelemetry = require('./telemetry');
|
||||
|
||||
async function run() {
|
||||
if (!process.env.TELEMETRY_DISABLE) {
|
||||
if (!process.env.DISABLE_TELEMETRY) {
|
||||
await sendTelemetry();
|
||||
}
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ import { removeTrailingSlash } from '../lib/url';
|
||||
const post = (url, data, callback) => {
|
||||
const req = new XMLHttpRequest();
|
||||
req.open('POST', url, true);
|
||||
req.setRequestHeader('Content-Type', 'text/plain');
|
||||
req.setRequestHeader('Content-Type', 'application/json');
|
||||
|
||||
req.onreadystatechange = () => {
|
||||
if (req.readyState === 4) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user