瀏覽代碼

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 ) );
 			loadFile( window.location.hash.substring( 1 ) );