split javascript file into multiple
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
export async function loadContent(lang) {
|
||||
const response = await fetch(`./lang/${lang}.json`);
|
||||
return response.json();
|
||||
}
|
||||
|
||||
export async function loadImageConfig() {
|
||||
const response = await fetch("./config/img_config.json");
|
||||
return response.json();
|
||||
}
|
||||
Reference in New Issue
Block a user