Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Combine newFeature entry with the previous entry in update json, if versionString is the same. #224

Merged
merged 2 commits into from
Dec 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,13 @@ <h5 data-i18n="footer.in-touch.header">Keep in Touch</h5>
var build = data[0][0],
buildName = build.versionString;

// Probe previous entry to see if the update is a dot update,
// in which case combine both the entries.
var prevBuild = data[0][1];
if (prevBuild && prevBuild.versionString && prevBuild.versionString === buildName) {
build.newFeatures = build.newFeatures.concat(prevBuild.newFeatures);
}

if (buildName) {
var buildNum = buildName.match(/([\d.]+)/);
if (buildNum) {
Expand Down