mirror of
https://github.com/Findus23/RadioStats.git
synced 2024-09-09 04:23:47 +02:00
fix production check
This commit is contained in:
parent
15cb967005
commit
38c018ca2d
3 changed files with 4 additions and 4 deletions
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue