소스 검색

Merge pull request #16633 from gero3/patch-10

Examples: Make sure layout looks fine, even when using outdated links
Michael Herzog 6 년 전
부모
커밋
98f8b8837c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 ) );
 			loadFile( window.location.hash.substring( 1 ) );