Browse Source

Editor: Only display video renderer when SharedArrayBuffer is available.

Mr.doob 4 năm trước cách đây
mục cha
commit
71ffae30b3
1 tập tin đã thay đổi với 6 bổ sung1 xóa
  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;