From f1500d99a86cae8ebcd2b21104851384bd35b66b Mon Sep 17 00:00:00 2001 From: Prashanth Nethi Date: Fri, 14 Dec 2018 11:28:52 +0530 Subject: [PATCH 1/2] Checking the previous entry in update json to see if the versionString of the previous updates entry is the same as that of the latest one. If same, then we combine both the entries. --- index.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.html b/index.html index 015df9cd..ab8e89c9 100644 --- a/index.html +++ b/index.html @@ -462,6 +462,13 @@
Keep in Touch
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.versionString && prevBuild.versionString === buildName) { + build.newFeatures = build.newFeatures.concat(prevBuild.newFeatures); + } + if (buildName) { var buildNum = buildName.match(/([\d.]+)/); if (buildNum) { From 13d3ef624187500f440d375595fc4b2560101588 Mon Sep 17 00:00:00 2001 From: Prashanth Nethi Date: Fri, 14 Dec 2018 12:46:41 +0530 Subject: [PATCH 2/2] Adding a null check. --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index ab8e89c9..d65096cd 100644 --- a/index.html +++ b/index.html @@ -465,7 +465,7 @@
Keep in Touch
// 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.versionString && prevBuild.versionString === buildName) { + if (prevBuild && prevBuild.versionString && prevBuild.versionString === buildName) { build.newFeatures = build.newFeatures.concat(prevBuild.newFeatures); }