Selaa lähdekoodia

VideoRecorder none mandatory in inspector Fix #5026

sebastien 7 vuotta sitten
vanhempi
commit
ff759f42a7
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      inspector/src/tabs/ToolsTab.ts

+ 1 - 1
inspector/src/tabs/ToolsTab.ts

@@ -141,7 +141,7 @@ export class ToolsTab extends Tab {
             };
             elemValue.appendChild(inputElement);
 
-            if (VideoRecorder.IsSupported(this._scene.getEngine())) {
+            if (VideoRecorder && VideoRecorder.IsSupported(this._scene.getEngine())) {
                 let videoRecorderElement = Inspector.DOCUMENT.createElement('input');
                 videoRecorderElement.value = "Start Recording Video";
                 videoRecorderElement.type = "button";