Send only the hostname to the accounts server

This commit is contained in:
yflory 2017-05-16 14:41:40 +02:00
parent 834830fc4f
commit 953e7155f0

View File

@ -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",