1
0
mirror of https://github.com/fenwick67/mastofeed synced 2025-03-10 16:30:10 +01:00

handle case where href=""

This commit is contained in:
Drew Harwell 2020-01-22 17:44:58 -05:00 committed by GitHub
parent 91700a596d
commit d33129ff96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,7 +120,7 @@
}else{
var finalLink = pageLinks[pageLinks.length-1].href;
// make sure we don't load the same page twice
if (finalLink == lastPageLoaded){
if (!finalLink || finalLink == lastPageLoaded){
console.log('this was the last page');
return false;
}else{