Skip to content

Commit

Permalink
review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stephaniehobson committed Sep 14, 2023
1 parent 4f1b967 commit 4d77bf4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions media/js/base/datalayer-productdownload.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,17 +112,17 @@ TrackProductDownload.getEventFromUrl = (downloadURL) => {
platform =
productParam.indexOf('msi') !== -1 ? platform + '-msi' : platform;
// release channel is second word of product param
let releaseChannel = productSplit[1];
let release = productSplit[1];
// (except for latest, msi, or sub installer - we update those to say release)
if (['latest', 'stub', 'msi'].includes(releaseChannel)) {
releaseChannel = 'release';
if (release === 'latest' || release === 'stub' || release === 'msi') {
release = 'release';
}

eventObject = TrackProductDownload.getEventObject(
product,
platform,
'site',
releaseChannel,
release,
params.lang
);
} else if (playStoreURL.test(downloadURL) || marketURL.test(downloadURL)) {
Expand Down

0 comments on commit 4d77bf4

Please sign in to comment.