We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e7236e commit 0b20840Copy full SHA for 0b20840
1 file changed
assets/js/meta.js
@@ -25,7 +25,9 @@
25
};
26
window.hits = (tag) => {
27
if (settings.get("miscellaneous_hits") === "disable") return;
28
- fetch("https://hits.zkitefly.eu.org/?tag=" + tag, { method: "HEAD" }).then((response) => {
+ const hitsUrl = new URL("https://hits.zkitefly.eu.org");
29
+ hitsUrl.searchParams.set("tag", tag);
30
+ fetch(hitsUrl, { method: "HEAD" }).then((response) => {
31
if (response.status !== 200) return;
32
const { headers } = response;
33
const total = headers.get("X-Total-Hits");
0 commit comments