From 733c3abefa7f12d6b8b4fbecc9b73f1b07cc6a03 Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 11 May 2017 12:43:32 +0200 Subject: [PATCH] Update the upgrade button in the drive --- www/drive/main.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/www/drive/main.js b/www/drive/main.js index 236dc0a3c..47868bde4 100644 --- a/www/drive/main.js +++ b/www/drive/main.js @@ -2690,12 +2690,16 @@ define([ var $usage = $('', {'class': 'usage'}).css('width', width+'px'); if (quota >= 0.8) { + var origin = encodeURIComponent(window.location.origin); + var $upgradeLink = $('', { + href: "https://account.cryptpad.fr/#!on=" + origin, + rel: "noreferrer noopener", + target: "_blank", + }).appendTo($leftside); $('