Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix app-breaking behavior at last page of !made-by

  • Loading branch information...
commit f21061fe2c1f8de4f88b52d79716e1e2b50f3dfc 1 parent 7af3742
Yusaku Hashimoto authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/js/PixivAuthorRule.js
5 src/js/PixivAuthorRule.js
View
@@ -19,8 +19,9 @@ function (Lib, Util, WorkListRule, Pixiv) {
getThumbnailUrls: function (doc) {
return [].map.call(doc.querySelectorAll("div.display_works > ul > li"), function (li) {
- return li.querySelector("img").getAttribute("src");
- });
+ var thumbnail = li.querySelector("img");
+ return thumbnail && thumbnail.getAttribute("src");
+ }).filter(function (url) { return !!url; });
},
makeWorkInfoFromThumbnailUrl: function (url) {
Please sign in to comment.
Something went wrong with that request. Please try again.