Browse Source

Merge pull request #16633 from gero3/patch-10

Examples: Make sure layout looks fine, even when using outdated links
Michael Herzog 6 năm trước cách đây
mục cha
commit
98f8b8837c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 ) );