chore: debug

This commit is contained in:
Cory Dransfeldt 2024-04-03 20:17:12 -07:00
parent 8d77602f96
commit eb0aea4627
No known key found for this signature in database
2 changed files with 19 additions and 13 deletions

View file

@ -1,13 +1,19 @@
import fs from 'fs'
export default async function () {
const window = fs.readFileSync('./json/scrobbles-window.json', (error, data) => {
if (error) {
console.log(error);
return;
}
return JSON.parse(data)
})
console.log(window)
return window
// const window = fs.readFileSync('./json/scrobbles-window.json', (error, data) => {
// if (error) {
// console.log(error);
// return;
// }
// return JSON.parse(data)
// })
// console.log(window)
// return window
fs.readdir('./json', (err, files) => {
files.forEach(file => {
console.log(file);
});
});
}