Browse Source

Fix for IE11

David Catuhe 6 năm trước cách đây
mục cha
commit
da17f2fde6
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      Playground/js/index.js

+ 3 - 3
Playground/js/index.js

@@ -626,14 +626,14 @@ function showError(errorMessage, errorEvent) {
 
                     if (scene) {
                         if (showInspector) {
-                            if(scene.then){
+                            if (scene.then) {
                                 // Handle if scene is a promise
-                                scene.then((s)=>{
+                                scene.then(function(s) {
                                     if (!s.debugLayer.isVisible()) {
                                         s.debugLayer.show({ embedMode: true });
                                     }
                                 })
-                            }else{
+                            } else {
                                 if (!scene.debugLayer.isVisible()) {
                                     scene.debugLayer.show({ embedMode: true });
                                 }