Skip to content

Commit

Permalink
Properly support array to string in JavaScript API
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Aug 7, 2018
1 parent af0258e commit 77d61dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/models/api/javascript-api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ ParsedPage JavascriptApi::parsePage(Page *parentPage, const QString &source, int

if (key == QLatin1String("tags_obj") || (key == QLatin1String("tags") && val.isArray()))
{ tags = makeTags(val, site); }
else if (val.isArray())
{ d[key] = jsToStringList(val).join(' '); }
else
{ d[key] = val.toString(); }
}
Expand Down

0 comments on commit 77d61dd

Please sign in to comment.