Hitcount updates visually, previously it just showed 1 on the frontend as the value wasn't actually  being retrieved from the data.getdata()

Signed-off-by: deadvey <deadvey@deadvey.com>
This commit is contained in:
2025-09-24 20:18:05 +01:00
parent 1ecc223433
commit b44762ba7c
2 changed files with 3 additions and 3 deletions

View File

@@ -1 +1 @@
{"hitcount":40}
{"hitcount":45}

View File

@@ -14,9 +14,9 @@ export function getdata(data, index=-1) {
}
return result
}
else if (data == "other_data") {
else if (data == "hitcount") {
let result = require('../data/data.json') // This file is actually called data.json
return result
return result["hitcount"]
}
else {
console.log("Error, invalid requested")