Browse Source

temp fix for document load

Nikolay Suslov 5 years ago
parent
commit
10c85338d4
1 changed files with 3 additions and 3 deletions
  1. 3 3
      public/vwf/view/document.js

+ 3 - 3
public/vwf/view/document.js

@@ -85,11 +85,11 @@ define( [ "module", "vwf/view", "vwf/utility"], function( module, view, utility)
                 if(all){
                     if(Object.keys(all).includes(dbPath)){
 
-                        //userDB.get('worlds').get(worldName).get(dbPath).get('file').once(function(res) { 
-                        let res = all[dbPath].file;
+                        userDB.get('worlds').get(worldName).get(dbPath).get('file').load(function(res) { 
+                        //let res = all[dbPath].file;
                         loadDoc(res);
                         callback( true );
-                       // })
+                       },{wait:300})
                     } else {
                         //NEED TO FIXED!!! Error: Callback was already called.
                         // userDB.get('worlds').get('empty').get(dbPath).get('file').once(function(res) {