|
@@ -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 });
|
|
|
}
|