Преглед на файлове

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
   }