From 7c38453f6ddb81cae2df089875ad67f1eb9ae429 Mon Sep 17 00:00:00 2001 From: Quentin Henneaux Date: Wed, 10 Jun 2020 13:39:11 +0000 Subject: [PATCH] Add secret transmission --- app.js | 7 ++++++- views/planet.handlebars | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index a0c2341..5dedd1e 100644 --- a/app.js +++ b/app.js @@ -25,6 +25,7 @@ flipit.load(__dirname+"/features.json", function() { }); var Organization = "Star Wars"; + DeathStar = "no secret transmission"; Planet = "Tatooine"; Climate = "Arid"; Terrain = "Desert"; @@ -35,6 +36,10 @@ if (process.env.ORG) { Organization = process.env.ORG; } +if (process.env.DEATH_STAR_PROJECT) { + DeathStar = process.env.DEATH_STAR_PROJECT; +} + if (process.env.SW_PLANET) { Planet = process.env.SW_PLANET; } @@ -109,7 +114,7 @@ app.get('/', function(request, result, next) { app.get('/planet', function(request, result, next) { if (flipit.isEnabled('planet-page')) { const hostname = os.hostname; - result.render('planet', {host: hostname, planet: Planet, climate: Climate, terrain: Terrain, population: Population, resident: Resident}); + result.render('planet', {host: hostname, deathstar: DeathStar, planet: Planet, climate: Climate, terrain: Terrain, population: Population, resident: Resident}); } }); diff --git a/views/planet.handlebars b/views/planet.handlebars index f2a0062..ac6763f 100644 --- a/views/planet.handlebars +++ b/views/planet.handlebars @@ -37,6 +37,7 @@
Population (): {{population}}
Resident (): {{resident}}
+
SECRET TRANSMISSION () : {{deathstar}}