From b327907fdfe17ff8495790b141ef069aa6c8d1a1 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 24 Mar 2021 15:38:58 +0530 Subject: [PATCH] provide feedback when nodrive mode is used --- www/common/cryptpad-common.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 8e8ec8f82..80ef8b509 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -2028,7 +2028,7 @@ define([ }); }; - + var launchedWithNoDrive = false; var provideFeedback = function () { if (typeof(window.Proxy) === 'undefined') { Feedback.send("NO_PROXIES"); @@ -2065,6 +2065,9 @@ define([ if (!common.hasCSSVariables()) { Feedback.send('NO_CSS_VARIABLES'); } + if (launchedWithNoDrive) { + Feedback.send('NO_DRIVE'); + } Feedback.reportScreenDimensions(); Feedback.reportLanguage(); @@ -2294,6 +2297,10 @@ define([ }; common.userHash = userHash; + if (rdyCfg.noDrive) { + launchedWithNoDrive = true; + } + // FIXME Backward compatibility if (sessionStorage.newPadFileData) { common.fromFileData = JSON.parse(sessionStorage.newPadFileData);