Make contribution URLs configurable

pull/1/head
yflory 4 years ago
parent 714f2c6051
commit 678fc5e41e

@ -9,8 +9,8 @@ define([
], function ($, h, Msg, AppConfig, LocalStore, Pages, Config) { ], function ($, h, Msg, AppConfig, LocalStore, Pages, Config) {
var origin = encodeURIComponent(window.location.hostname); var origin = encodeURIComponent(window.location.hostname);
var accounts = { var accounts = {
donateURL: 'https://accounts.cryptpad.fr/#/donate?on=' + origin, donateURL: AppConfig.donateURL || "https://opencollective.com/cryptpad/",
upgradeURL: 'https://accounts.cryptpad.fr/#/?on=' + origin, upgradeURL: AppConfig.upgradeURL || 'https://accounts.cryptpad.fr/#/?on=' + origin,
}; };
return function () { return function () {
Msg.features_f_apps_note = AppConfig.availablePadTypes.map(function (app) { Msg.features_f_apps_note = AppConfig.availablePadTypes.map(function (app) {

@ -44,9 +44,8 @@ define([
var origin = encodeURIComponent(window.location.hostname); var origin = encodeURIComponent(window.location.hostname);
var common = window.Cryptpad = { var common = window.Cryptpad = {
Messages: Messages, Messages: Messages,
//donateURL: 'https://accounts.cryptpad.fr/#/donate?on=' + origin, donateURL: AppConfig.donateURL || "https://opencollective.com/cryptpad/",
donateURL: "https://opencollective.com/cryptpad/", upgradeURL: AppConfig.upgradeURL || 'https://accounts.cryptpad.fr/#/?on=' + origin,
upgradeURL: 'https://accounts.cryptpad.fr/#/?on=' + origin,
account: {}, account: {},
}; };

Loading…
Cancel
Save