chore: debug
This commit is contained in:
parent
f3fd479035
commit
70e38cd6e1
1 changed files with 3 additions and 2 deletions
|
@ -1,12 +1,13 @@
|
||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
|
|
||||||
export default async function () {
|
export default async function () {
|
||||||
const window = fs.readFileSync('./src/_data/json/scrobbles-window.json', (error, data) => {
|
let window;
|
||||||
|
fs.readFileSync('./src/_data/json/scrobbles-window.json', (error, data) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
return JSON.parse(data)
|
window = JSON.parse(data)
|
||||||
})
|
})
|
||||||
console.log(window)
|
console.log(window)
|
||||||
return window
|
return window
|
||||||
|
|
Reference in a new issue