Przeglądaj źródła

VideoRecorder none mandatory in inspector Fix #5026

sebastien 7 lat temu
rodzic
commit
ff759f42a7
1 zmienionych plików z 1 dodań i 1 usunięć
  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";