diff --git a/customize.dist/pages/features.js b/customize.dist/pages/features.js index 00308fc29..6403ec36a 100644 --- a/customize.dist/pages/features.js +++ b/customize.dist/pages/features.js @@ -9,8 +9,8 @@ define([ ], function ($, h, Msg, AppConfig, LocalStore, Pages, Config) { var origin = encodeURIComponent(window.location.hostname); var accounts = { - donateURL: 'https://accounts.cryptpad.fr/#/donate?on=' + origin, - upgradeURL: 'https://accounts.cryptpad.fr/#/?on=' + origin, + donateURL: AppConfig.donateURL || "https://opencollective.com/cryptpad/", + upgradeURL: AppConfig.upgradeURL || 'https://accounts.cryptpad.fr/#/?on=' + origin, }; return function () { Msg.features_f_apps_note = AppConfig.availablePadTypes.map(function (app) { diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 85de0b006..696627cbe 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -44,9 +44,8 @@ define([ var origin = encodeURIComponent(window.location.hostname); var common = window.Cryptpad = { Messages: Messages, - //donateURL: 'https://accounts.cryptpad.fr/#/donate?on=' + origin, - donateURL: "https://opencollective.com/cryptpad/", - upgradeURL: 'https://accounts.cryptpad.fr/#/?on=' + origin, + donateURL: AppConfig.donateURL || "https://opencollective.com/cryptpad/", + upgradeURL: AppConfig.upgradeURL || 'https://accounts.cryptpad.fr/#/?on=' + origin, account: {}, };