From 607d9652f55f3f42e4927646657f5d7536d0dfb9 Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 13 Apr 2017 14:48:15 +0200 Subject: [PATCH] jshint compliance --- www/common/cryptpad-common.js | 37 ++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 9bf6a310e..2e78da45d 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -27,24 +27,6 @@ load pinpad dynamically only after you know that it will be needed */ Clipboard: Clipboard }; - var feedback = common.feedback = function (action) { - if (!action) { return; } - try { - if (!getStore().getProxy().proxy.allowUserFeedback) { return; } - } catch (e) { return void console.error(e); } - - var href = '/common/feedback.html?' + action + '=' + (+new Date()); - $.ajax({ - type: "HEAD", - url: href, - }); - }; - - var reportAppUsage = common.reportAppUsage = function () { - var pattern = window.location.pathname.split('/') - .filter(function (x) { return x; }).join('.'); - feedback(pattern); - }; // constants var userHashKey = common.userHashKey = 'User_hash'; @@ -105,6 +87,25 @@ load pinpad dynamically only after you know that it will be needed */ return; }; + var feedback = common.feedback = function (action) { + if (!action) { return; } + try { + if (!getStore().getProxy().proxy.allowUserFeedback) { return; } + } catch (e) { return void console.error(e); } + + var href = '/common/feedback.html?' + action + '=' + (+new Date()); + $.ajax({ + type: "HEAD", + url: href, + }); + }; + + var reportAppUsage = common.reportAppUsage = function () { + var pattern = window.location.pathname.split('/') + .filter(function (x) { return x; }).join('.'); + feedback(pattern); + }; + var getUid = common.getUid = function () { if (store) { if (store.getProxy() && store.getProxy().proxy) {