From 5a42287c7e59e27ee91a5dea23f41e3301c3467a Mon Sep 17 00:00:00 2001 From: prasanthp96 Date: Thu, 10 Aug 2017 13:10:30 +0530 Subject: [PATCH] added a mapping for internal names to refer to the channels Fixes https://github.com/brave/browser-laptop/issues/10239 --- app/channel.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/channel.js b/app/channel.js index cb162f07518..52ea77fcb5c 100644 --- a/app/channel.js +++ b/app/channel.js @@ -17,7 +17,11 @@ if (!channels.has(channel)) { } exports.channel = () => { - return channel + let channelMapping = { + 'dev': 'Release', + 'beta': 'Beta' + } + return Object.keys(channelMapping).includes(channel) ? channelMapping[channel] : channel } exports.browserLaptopRev = () => process.env.NODE_ENV === 'development'