diff --git a/www/common/sframe-common-interface.js b/www/common/sframe-common-interface.js index 8d817995c..e53db847d 100644 --- a/www/common/sframe-common-interface.js +++ b/www/common/sframe-common-interface.js @@ -382,10 +382,11 @@ define([ var quota = usage/limit; var $usage = $('', {'class': 'cp-limit-usage'}).css('width', quota*100+'%'); + var urls = common.getMetadataMgr().getPrivateData().accounts; var makeDonateButton = function () { $('', { 'class': 'cp-limit-upgrade btn btn-success', - href: Cryptpad.donateURL, + href: urls.donateURL, rel: "noreferrer noopener", target: "_blank", }).text(Messages.supportCryptpad).appendTo($container); @@ -394,7 +395,7 @@ define([ var makeUpgradeButton = function () { $('', { 'class': 'cp-limit-upgrade btn btn-success', - href: Cryptpad.upgradeURL, + href: urls.upgradeURL, rel: "noreferrer noopener", target: "_blank", }).text(Messages.upgradeAccount).appendTo($container); diff --git a/www/common/sframe-common-outer.js b/www/common/sframe-common-outer.js index 2daa275f7..aa10bc29c 100644 --- a/www/common/sframe-common-outer.js +++ b/www/common/sframe-common-outer.js @@ -130,6 +130,10 @@ define([ settings: proxy.settings || {}, isPresent: parsed.hashData && parsed.hashData.present, isEmbed: parsed.hashData && parsed.hashData.embed, + accounts: { + donateURL: Cryptpad.donateURL, + upgradeURL: Cryptpad.upgradeURL + } } }; if (cfg.addData) {