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) {