浏览代码

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 ) );