From 61a891267ffcc0ea27a183bba75381ad48c14752 Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 22 Jun 2017 17:42:24 +0200 Subject: [PATCH] more feedback --- www/common/cryptpad-common.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 424c5bf52..0fdd19b5f 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -167,6 +167,12 @@ define([ feedback(pattern); }; + common.reportScreenDimensions = function () { + var h = window.innerHeight; + var w = window.innerWidth; + feedback('DIMENSIONS:' + h + 'x' + w); + }; + common.getUid = function () { if (store && store.getProxy() && store.getProxy().proxy) { return store.getProxy().proxy.uid; @@ -1484,6 +1490,8 @@ define([ feedback("NO_ISARRAY"); } + common.reportScreenDimensions(); + $(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"