Explorar el Código

Docs: Fixed broken *BufferGeometry links.

Mr.doob hace 4 años
padre
commit
d9c431ad91
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      docs/index.html

+ 8 - 0
docs/index.html

@@ -65,6 +65,14 @@
 
 			const list = await ( await fetch( 'list.json' ) ).json();
 
+			// *BufferGeometry to *Geometry
+
+			if ( /([\w]+)BufferGeometry$/.exec( window.location.hash ) ) {
+
+				window.location.hash = window.location.hash.replace( 'BufferGeometry', 'Geometry' );
+
+			}
+
 			const hash = window.location.hash.substring( 1 );
 
 			// Localisation