Browse Source

make sure layout looks fine, even when using outdated links

gero3 6 năm trước cách đây
mục cha
commit
40acdcddab
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 ) );
 

粤ICP备19079148号