소스 검색

make sure layout looks fine, even when using outdated links

gero3 6 년 전
부모
커밋
40acdcddab
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      examples/index.html

+ 1 - 1
examples/index.html

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