Procházet zdrojové kódy

Docs: Fixed broken *BufferGeometry links.

Mr.doob před 4 roky
rodič
revize
34c8896f69
1 změnil soubory, kde provedl 8 přidání a 0 odebrání
  1. 8 0
      docs/index.html

+ 8 - 0
docs/index.html

@@ -79,6 +79,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