1
0
Fork 0
mirror of https://github.com/Findus23/RadioStats.git synced 2024-09-20 17:13:48 +02:00

fix production check

This commit is contained in:
Lukas Winkler 2022-07-11 22:53:38 +02:00
parent 15cb967005
commit 38c018ca2d
Signed by: lukas
GPG key ID: 54DE4D798D244853
3 changed files with 4 additions and 4 deletions

View file

@ -33,7 +33,7 @@
import moment from "moment";
import "moment/locale/de-at";
if (import.meta.env.NODE_ENV === "production") {
if (import.meta.env.PROD) {
axios.defaults.headers.common['X-Requested-With'] = "XMLHttpRequest";
}

View file

@ -107,7 +107,7 @@ import {de} from 'vuejs-datepicker/dist/locale';
import Info from "./Info.vue";
import {icon} from "./utils";
if (import.meta.env.NODE_ENV === "production") {
if (import.meta.env.PROD) {
axios.defaults.headers.common['X-Requested-With'] = "XMLHttpRequest";
}

View file

@ -3,13 +3,13 @@ export default class MatomoTracker {
if (typeof _paq === 'undefined') { // should only occur with hot reloading
var _paq = window._paq = window._paq || []; _paq.push(['disableCookies']);
_paq.push(['enableHeartBeatTimer']);
if (import.meta.env.NODE_ENV === "production") {
if (import.meta.env.PROD) {
_paq.push(["setDoNotTrack", true]);
}
(function() {
let u ="https://matomo.lw1.at/" ;
_paq.push(['setTrackerUrl', u + 'piwik.php']);
_paq.push(['setSiteId', (import.meta.env.NODE_ENV === "production") ? 15 : 6]);
_paq.push(['setSiteId', (import.meta.env.PROD) ? 15 : 6]);
let d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
g.type = 'text/javascript';
g.async = true;