Send only the hostname to the accounts server

pull/1/head
yflory 8 years ago
parent 834830fc4f
commit 953e7155f0

@ -797,7 +797,7 @@ define([
var $usage = $('<span>', {'class': 'usage'}).css('width', width+'px');
if ((quota >= 0.8 || alwaysDisplayUpgrade) && data.plan !== "power") {
var origin = encodeURIComponent(window.location.origin);
var origin = encodeURIComponent(window.location.hostname);
var $upgradeLink = $('<a>', {
href: "https://accounts.cryptpad.fr/#!on=" + origin,
rel: "noreferrer noopener",

Loading…
Cancel
Save