Skip to content

Commit

Permalink
Merge pull request #122 from athalius/develop
Browse files Browse the repository at this point in the history
Potential fix for #111
  • Loading branch information
braiam committed Dec 2, 2015
2 parents 92a1136 + cbf71d4 commit 9c767e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/MangaElt.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,11 @@ function MangaElt(obj) {
this.update = obj.update;
}
if (obj.cats !== undefined && obj.cats !== null) {
this.cats = JSON.parse(obj.cats) || obj.cats || [];
if(obj.cats instanceof Array){
this.cats= obj.cats;
}else{
this.cats = JSON.parse(obj.cats) || [];
}
}
if (obj.ts && fromSite) {
this.ts = obj.ts;
Expand Down

0 comments on commit 9c767e6

Please sign in to comment.