async await
This commit is contained in:
parent
64623df624
commit
451b0af017
2 changed files with 2 additions and 2 deletions
2
load.js
2
load.js
|
@ -125,7 +125,7 @@ async function load(init_func) {
|
||||||
// DB not closed? idfk man
|
// DB not closed? idfk man
|
||||||
}
|
}
|
||||||
|
|
||||||
function load_init(init_func) {
|
async function load_init(init_func) {
|
||||||
if (load_complete) {
|
if (load_complete) {
|
||||||
console.log("Item db already loaded, skipping load sequence");
|
console.log("Item db already loaded, skipping load sequence");
|
||||||
init_func();
|
init_func();
|
||||||
|
|
2
load3.js
2
load3.js
|
@ -125,7 +125,7 @@ async function load(init_func) {
|
||||||
// DB not closed? idfk man
|
// DB not closed? idfk man
|
||||||
}
|
}
|
||||||
|
|
||||||
function load_init(init_func) {
|
async function load_init(init_func) {
|
||||||
if (load_complete) {
|
if (load_complete) {
|
||||||
console.log("Item db already loaded, skipping load sequence");
|
console.log("Item db already loaded, skipping load sequence");
|
||||||
init_func();
|
init_func();
|
||||||
|
|
Loading…
Reference in a new issue