Browse Source

use load instead once

Nikolay Suslov 4 years ago
parent
commit
7e19680ab8
1 changed files with 5 additions and 5 deletions
  1. 5 5
      public/vwf.js

+ 5 - 5
public/vwf.js

@@ -384,7 +384,7 @@ Copyright (c) 2014-2018 Nikolai Suslov and the Krestianstvo.org project contribu
            
             let userDB = _LCSDB.user(_LCS_WORLD_USER.pub);
 
-            userDB.get('worlds').get(path.slice(1)).get(dbPath).get('file').once(function(res) {
+            userDB.get('worlds').get(path.slice(1)).get(dbPath).get('file').load(function(res) {
                 
                 var conf = "";
 
@@ -4597,7 +4597,7 @@ if ( ! childComponent.source ) {
                 if(dbName.includes("vwf_example_com")){
                     //userDB = await window._LCS_SYS_USER.get('proxy').then();
                    fileName = dbName;
-                   window._LCS_SYS_USER.get('proxy').get(fileName).get('file').once(comp=>{
+                   window._LCS_SYS_USER.get('proxy').get(fileName).get('file').load(comp=>{
                     parseComp (comp);
                    })
                    
@@ -4611,7 +4611,7 @@ if ( ! childComponent.source ) {
                     let worldName = dbName.split('/')[0];
                     //userDB = await window._LCS_WORLD_USER.get('worlds').path(worldName).then();
                    fileName = dbName.replace(worldName + '/', "");
-                   userDB.get('worlds').path(worldName).get(fileName).get('file').once(comp=>{
+                   userDB.get('worlds').path(worldName).get(fileName).get('file').load(comp=>{
                     parseComp (comp);
                    })
                    
@@ -4682,7 +4682,7 @@ if ( ! childComponent.source ) {
                 if(dbName.includes("vwf_example_com")){
                     //userDB = window._LCS_SYS_USER.get('proxy');
                     fileName = dbName;
-                    window._LCS_SYS_USER.get('proxy').get(fileName).get('file').once(comp=>{
+                    window._LCS_SYS_USER.get('proxy').get(fileName).get('file').load(comp=>{
                         parseComp (comp);
                        })
                     // window._LCS_SYS_USER.get('proxy').get(fileName).get('file').once(function(r){
@@ -4692,7 +4692,7 @@ if ( ! childComponent.source ) {
  
                 } else {
                     fileName = dbName.replace(worldName + '/', "");
-                    userDB.get('worlds').path(worldName).get(fileName).get('file').once(comp=>{
+                    userDB.get('worlds').path(worldName).get(fileName).get('file').load(comp=>{
                         parseComp (comp);
                        })
                     // userDB.get('worlds').path(worldName).get(fileName).get('file').once(function(r){