fix issue with empty anchors
This commit is contained in:
parent
d33129ff96
commit
c1f9ea7b3a
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@
|
|||
}else{
|
||||
var finalLink = pageLinks[pageLinks.length-1].href;
|
||||
// make sure we don't load the same page twice
|
||||
if (!finalLink || finalLink == lastPageLoaded){
|
||||
if (!finalLink || finalLink == window.location.href || finalLink == lastPageLoaded){
|
||||
console.log('this was the last page');
|
||||
return false;
|
||||
}else{
|
||||
|
|
Reference in a new issue