I want to scream

This commit is contained in:
Skylar Grant 2024-08-14 19:11:09 -04:00
parent e24a70053d
commit 8bea9b55e4
1 changed files with 14 additions and 1 deletions

View File

@ -1,5 +1,18 @@
// Custom Classes files
import { config } from './config.json';
const config = fetch('/assets/config.json')
.then(response => {
if (!response.ok) {
throw new Error('Network response was not ok');
}
return response.json(); // Parse the JSON data from the response
})
.then(data => {
console.log(data); // Use the JSON data here
})
.catch(error => {
console.error('There was a problem with the fetch operation:', error);
});
export class State {
constructor() {