소스 검색

fix for Microsoft Edge browser

Nikolay Suslov 7 년 전
부모
커밋
53c7559a8d
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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;