diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 659fe198a..36fe85515 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -827,20 +827,40 @@ define([ var width = Math.floor(Math.min(quota, 1)*200); // the bar is 200px width var $usage = $('', {'class': 'usage'}).css('width', width+'px'); - if (Config.noSubscriptionButton !== true && - (quota >= 0.8 || alwaysDisplayUpgrade) && - data.plan !== "power") - { - // TODO show donate url if applicable + var makeDonateButton = function () { var $upgradeLink = $('', { - href: common.upgradeLink, + href: common.donateURL, + rel: "noreferrer noopener", + target: "_blank", + }).appendTo($container); + $('