bug fix
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:
@@ -1 +1 @@
|
|||||||
{"hitcount":40}
|
{"hitcount":45}
|
@@ -14,9 +14,9 @@ export function getdata(data, index=-1) {
|
|||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
else if (data == "other_data") {
|
else if (data == "hitcount") {
|
||||||
let result = require('../data/data.json') // This file is actually called data.json
|
let result = require('../data/data.json') // This file is actually called data.json
|
||||||
return result
|
return result["hitcount"]
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
console.log("Error, invalid requested")
|
console.log("Error, invalid requested")
|
||||||
|
Reference in New Issue
Block a user