Skip to content

Commit

Permalink
Merge pull request #44 from nliautaud/fix-undefined-job
Browse files Browse the repository at this point in the history
fix undefined job on movie item
  • Loading branch information
nliautaud authored May 26, 2019
2 parents de2dae0 + c676bcb commit 5dd74a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/statify.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function processMovies( parent ) {
year = el_infos.children[ 1 ].firstChild.nodeValue,
decade = yearDecade( year ),
el_job = el_infos.children[ 2 ],
job = el_job.firstChild.nodeValue.trim()
job = el_job ? el_job.firstChild.nodeValue.trim() : '?'

if ( cat && !categories.includes( cat ) ) categories.push( cat )
if ( year && !years.includes( year ) ) years.push( year )
Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"name": "Trakt improver DEV",
"short_name" : "trakttvstats",
"description": "Add various improvements to Trakt.tv",
"version": "0.5.3",
"version_name": "0.5 (0.5.3)",
"version": "0.5.4",
"version_name": "0.5 (0.5.4)",
"permissions": [
"storage",
"tabs",
Expand Down

0 comments on commit 5dd74a7

Please sign in to comment.