Browse Source

fix for Microsoft Edge browser

Nikolay Suslov 7 years ago
parent
commit
53c7559a8d
2 changed files with 3 additions and 3 deletions
  1. 2 1
      .gitignore
  2. 1 2
      support/client/lib/vwf/view/aframe.js

+ 2 - 1
.gitignore

@@ -1,4 +1,5 @@
 # Node.js
 node_modules
 /npm-debug.log
-cert
+cert
+.vscode

+ 1 - 2
support/client/lib/vwf/view/aframe.js

@@ -58,8 +58,7 @@ define(["module", "vwf/view"], function (module, view) {
 
             if (this.state.scenes[childID]) {
                 let scene = this.state.scenes[childID];
-
-                document.body.append(scene);
+                document.body.appendChild(scene); //append is not working in Edge browser
                 createAvatarControl(scene);
                 createAvatar.call(this, childID);
                // this.state.appInitialized  = true;