Explorar el Código

Make same-page anchor condition clearer

Alexandre Dieulot hace 6 años
padre
commit
3e1b0b2934
Se han modificado 1 ficheros con 1 adiciones y 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
   }