From 62f163f887bed05acc24f493137bca412767c743 Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 4 May 2021 12:45:21 +0530 Subject: [PATCH] avoid duplicated emails on contact page --- customize.dist/pages/contact.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/customize.dist/pages/contact.js b/customize.dist/pages/contact.js index 88a5053e3..b86ad4480 100644 --- a/customize.dist/pages/contact.js +++ b/customize.dist/pages/contact.js @@ -7,8 +7,13 @@ define([ ], function (Config, h, Msg, Pages, LocalStore) { return function () { - var adminEmail = Config.adminEmail && Config.adminEmail !== 'i.did.not.read.my.config@cryptpad.fr'; + var developerEmail = "contact@cryptpad.fr"; + var adminEmail = Config.adminEmail && [ + 'i.did.not.read.my.config@cryptpad.fr', + developerEmail + ].indexOf(Config.adminEmail) === -1; var adminMailbox = Config.supportMailbox && LocalStore.isLoggedIn(); + return h('div#cp-main', [ Pages.infopageTopbar(), h('div.container.cp-container', [ @@ -110,7 +115,7 @@ define([ ) ), h('div.col-12.col-sm-6.col-md-3.col-lg-3', - h('a.card', {href : "mailto:contact@cryptpad.fr"}, + h('a.card', {href : "mailto:" + developerEmail}, h('div.card-body', h('p', [ h('img', {