소스 검색

Make same-page anchor condition clearer

Alexandre Dieulot 6 년 전
부모
커밋
3e1b0b2934
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      instantpage.js

+ 1 - 1
instantpage.js

@@ -102,7 +102,7 @@ function isPreloadable(linkElement) {
     return
   }
 
-  if (urlObject.pathname + urlObject.search == location.pathname + location.search && urlObject.hash) {
+  if (urlObject.hash && urlObject.pathname + urlObject.search == location.pathname + location.search) {
     return
   }