|
|
@ -23,11 +23,13 @@ define([
|
|
|
|
|
|
|
|
|
|
|
|
Additionally, there is some basic functionality for import/export.
|
|
|
|
Additionally, there is some basic functionality for import/export.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var origin = encodeURIComponent(window.location.hostname);
|
|
|
|
var common = window.Cryptpad = {
|
|
|
|
var common = window.Cryptpad = {
|
|
|
|
Messages: Messages,
|
|
|
|
Messages: Messages,
|
|
|
|
Clipboard: Clipboard,
|
|
|
|
Clipboard: Clipboard,
|
|
|
|
donateURL: 'https://accounts.cryptpad.fr/#/donate?on=' + window.location.hostname,
|
|
|
|
donateURL: 'https://accounts.cryptpad.fr/#/donate?on=' + origin,
|
|
|
|
upgradeURL: 'https://accounts.cryptpad.fr/#/?on=' + window.location.hostname,
|
|
|
|
upgradeURL: 'https://accounts.cryptpad.fr/#/?on=' + origin,
|
|
|
|
account: {},
|
|
|
|
account: {},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -809,9 +811,9 @@ define([
|
|
|
|
(quota >= 0.8 || alwaysDisplayUpgrade) &&
|
|
|
|
(quota >= 0.8 || alwaysDisplayUpgrade) &&
|
|
|
|
data.plan !== "power")
|
|
|
|
data.plan !== "power")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var origin = encodeURIComponent(window.location.hostname);
|
|
|
|
// TODO show donate url if applicable
|
|
|
|
var $upgradeLink = $('<a>', {
|
|
|
|
var $upgradeLink = $('<a>', {
|
|
|
|
href: "https://accounts.cryptpad.fr/#!on=" + origin,
|
|
|
|
href: common.upgradeLink,
|
|
|
|
rel: "noreferrer noopener",
|
|
|
|
rel: "noreferrer noopener",
|
|
|
|
target: "_blank",
|
|
|
|
target: "_blank",
|
|
|
|
}).appendTo($container);
|
|
|
|
}).appendTo($container);
|
|
|
|