From ec041c88e2548288f2470db3eb76928612179618 Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 21 Apr 2017 15:53:13 +0200 Subject: [PATCH] console.log when providing feedback also notify server if a users browser does not support proxies --- www/common/cryptpad-common.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 4eef9a8f4..68d2745d2 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -24,7 +24,6 @@ define([ Clipboard: Clipboard }; - // constants var userHashKey = common.userHashKey = 'User_hash'; var userNameKey = common.userNameKey = 'User_name'; @@ -107,6 +106,7 @@ define([ } catch (e) { return void console.error(e); } var href = '/common/feedback.html?' + action + '=' + (+new Date()); + console.log('[feedback] %s', href); $.ajax({ type: "HEAD", url: href, @@ -1155,6 +1155,9 @@ define([ var proxy = getProxy(); var network = getNetwork(); + if (typeof(window.Proxy) === 'undefined') { + feedback("NO_PROXIES"); + } $(function() { // Race condition : if document.body is undefined when alertify.js is loaded, Alertify // won't work. We have to reset it now to make sure it uses a correct "body"