Nikolay Suslov 4 years ago
parent
commit
0d5b6ac24d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      public/app.js

+ 2 - 2
public/app.js

@@ -2354,7 +2354,7 @@ class App {
 
     //let hasDocs = await (new Promise(res => db.get('documents').not(res(false)))).then(res=>{return res});
     
-    let list = await (new Promise(res => db.get('documents').once(res))) //load(res, { wait: 300 }
+    let list = await (new Promise(res => db.get('documents').load(res, { wait: 400 })))
       .then(r => {
         if (!worldName) {
           return Promise.all(Object.keys(r).map(k => db.get('documents').get(k).then(res => { return [k, res] })))
@@ -2475,7 +2475,7 @@ class App {
         db = _LCSDB.user();
     }
 
-    let list = await (new Promise(res => db.get('worlds').once(res))) //load(res, {wait:300})
+    let list = await (new Promise(res => db.get('worlds').load(res, { wait: 400 })))
       .then(r => {
 
         if (!worldName) {