Browse Source

Editor: Only display video renderer when SharedArrayBuffer is available.

Mr.doob 4 years ago
parent
commit
71ffae30b3
1 changed files with 6 additions and 1 deletions
  1. 6 1
      editor/js/Sidebar.Project.js

+ 6 - 1
editor/js/Sidebar.Project.js

@@ -62,7 +62,12 @@ function SidebarProject( editor ) {
 
 	/* container.add( new SidebarProjectMaterials( editor ) ); */
 	container.add( new SidebarProjectRenderer( editor ) );
-	container.add( new SidebarProjectVideo( editor ) );
+
+	if ( 'SharedArrayBuffer' in window ) {
+
+		container.add( new SidebarProjectVideo( editor ) );
+
+	}
 
 	return container;