From 41c43b9f72b6084a4266be1a13aa7b90f98c517b Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 19 Jan 2021 15:26:02 +0100 Subject: [PATCH] Fix XXX in features.js --- customize.dist/pages/features.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/customize.dist/pages/features.js b/customize.dist/pages/features.js index 839c6a4a3..62ef9ae85 100644 --- a/customize.dist/pages/features.js +++ b/customize.dist/pages/features.js @@ -10,7 +10,7 @@ define([ var origin = encodeURIComponent(window.location.hostname); var accounts = { donateURL: AppConfig.donateURL || "https://opencollective.com/cryptpad/", - upgradeURL: AppConfig.upgradeURL || 'https://accounts.cryptpad.fr/#/?on=' + origin, // XXX + upgradeURL: AppConfig.upgradeURL }; return function () { @@ -121,14 +121,14 @@ define([ h('ul.list-group.list-group-flush', ['reg', 'storage2', 'support', 'supporter'].map(groupItem)), h('div.card-body',[ h('div.cp-features-register#cp-features-subscribe', [ - premiumButton // XXX + premiumButton ]), LocalStore.isLoggedIn() ? undefined : h('div.cp-note', Msg.features_f_subscribe_note) ]), ]), ]); var availableFeatures = - Config.allowSubscriptions ? + (Config.allowSubscriptions && accounts.upgradeURL) ? [anonymousFeatures, registeredFeatures, premiumFeatures] : [anonymousFeatures, registeredFeatures];