Explorar el Código

Merge pull request #16633 from gero3/patch-10

Examples: Make sure layout looks fine, even when using outdated links
Michael Herzog hace 6 años
padre
commit
98f8b8837c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      examples/index.html

+ 1 - 1
examples/index.html

@@ -173,7 +173,7 @@
 
 		}
 
-		if ( window.location.hash !== '' ) {
+		if ( window.location.hash !== '' && links[ window.location.hash.substring( 1 ) ] ) {
 
 			loadFile( window.location.hash.substring( 1 ) );