Browse Source

Docs: Fixed broken *BufferGeometry links.

Mr.doob 4 years ago
parent
commit
d9c431ad91
1 changed files with 8 additions and 0 deletions
  1. 8 0
      docs/index.html

+ 8 - 0
docs/index.html

@@ -65,6 +65,14 @@
 
 
 			const list = await ( await fetch( 'list.json' ) ).json();
 			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 );
 			const hash = window.location.hash.substring( 1 );
 
 
 			// Localisation
 			// Localisation