Count API docs in user analytics

This commit is contained in:
Andrei Pohilko
2023-03-13 17:11:20 +00:00
parent e9ee10287b
commit c7d18a7fb7
2 changed files with 5 additions and 2 deletions

View File

@@ -6,6 +6,8 @@ xhr.onload = function () {
if (status.Analytics) {
enableDD(version)
enableHeap(version, status.ClusterMode)
} else {
console.log("Analytics is disabled in this session")
}
}
}

View File

@@ -35,12 +35,12 @@
const data = JSON.parse(request.responseText);
display(data);
} else {
alert("Failed to get "+ swaggerUrl)
alert("Failed to get " + swaggerUrl)
}
};
request.onerror = function () {
alert("Failed to get "+ swaggerUrl)
alert("Failed to get " + swaggerUrl)
};
request.send();
@@ -67,4 +67,5 @@
reqOas();
});
</script>
<script src="analytics.js"></script>
</html>