Fix analytics version

This commit is contained in:
Andrei Pohilko
2022-11-01 21:59:16 +00:00
parent dffb8a726b
commit f64fbd4a2e

View File

@@ -2,8 +2,9 @@ const xhr = new XMLHttpRequest();
xhr.onload = function () {
if (xhr.readyState === XMLHttpRequest.DONE) {
const status = JSON.parse(xhr.responseText);
if (status.Analytics && status.version !== "dev") {
enableDD(status.version)
const version = status.CurVer
if (status.Analytics && version !== "dev") {
enableDD(version)
enableHeap()
}
}