浏览代码

Editor: Only display video renderer when SharedArrayBuffer is available.

Mr.doob 4 年之前
父节点
当前提交
71ffae30b3
共有 1 个文件被更改,包括 6 次插入1 次删除
  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 SidebarProjectMaterials( editor ) ); */
 	container.add( new SidebarProjectRenderer( editor ) );
 	container.add( new SidebarProjectRenderer( editor ) );
-	container.add( new SidebarProjectVideo( editor ) );
+
+	if ( 'SharedArrayBuffer' in window ) {
+
+		container.add( new SidebarProjectVideo( editor ) );
+
+	}
 
 
 	return container;
 	return container;