I want to scream
This commit is contained in:
parent
e24a70053d
commit
8bea9b55e4
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user