From 70e38cd6e12b3966921aaac426447627a9aa6489 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Wed, 3 Apr 2024 20:23:23 -0700 Subject: [PATCH] chore: debug --- src/_data/test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/_data/test.js b/src/_data/test.js index 2a242f4a..1ac75e0c 100644 --- a/src/_data/test.js +++ b/src/_data/test.js @@ -1,12 +1,13 @@ import fs from 'fs' 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) { console.log(error); return; } - return JSON.parse(data) + window = JSON.parse(data) }) console.log(window) return window