Explorar o código

Make same-page anchor condition clearer

Alexandre Dieulot %!s(int64=6) %!d(string=hai) anos
pai
achega
3e1b0b2934
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
   }