diff --git a/data/data.json b/data/data.json index 1e2509f..a05db39 100644 --- a/data/data.json +++ b/data/data.json @@ -1 +1 @@ -{"hitcount":40} \ No newline at end of file +{"hitcount":45} \ No newline at end of file diff --git a/src/data.js b/src/data.js index 770ad2e..bd8b03e 100644 --- a/src/data.js +++ b/src/data.js @@ -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")