diff --git a/src/assets/HestiaClasses.js b/src/assets/HestiaClasses.js index fd849ff..71855ac 100644 --- a/src/assets/HestiaClasses.js +++ b/src/assets/HestiaClasses.js @@ -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() {