diff --git a/customize.dist/pages.js b/customize.dist/pages.js index 578c1dc24..601d3034d 100644 --- a/customize.dist/pages.js +++ b/customize.dist/pages.js @@ -615,17 +615,21 @@ define([ } ]); + var _link = h('a', { + href: "https://opencollective.com/cryptpad/contribute", + target: '_blank', + rel: 'noopener', + }); + var crowdFunding = AppConfig.disableCrowdfundingMessages ? undefined : h('button', [ Msg.crowdfunding_home1, h('br'), - Msg.crowdfunding_home2 + Msg.crowdfunding_home2, + link ]); + $(crowdFunding).click(function () { - var a = document.createElement("a"); - a.href = "https://opencollective.com/cryptpad/contribute"; - a.target = "_blank"; - a.rel = "noopener"; - a.click(); + link.click(); }); return [