add feedback keys for password change and drive migration

This commit is contained in:
ansuz
2019-01-08 15:17:43 +01:00
parent ab832f38b7
commit 424a14625d
3 changed files with 12 additions and 7 deletions

View File

@@ -21,15 +21,15 @@ define([
};
http.send();
};
Feedback.send = function (action, force) {
if (AppConfig.disableFeedback) { return; }
if (!action) { return; }
Feedback.send = function (action, force, cb) {
if (AppConfig.disableFeedback) { return void cb(); }
if (!action) { return void cb(); }
if (force !== true) {
if (!Feedback.state) { return; }
if (!Feedback.state) { return void cb(); }
}
var href = '/common/feedback.html?' + action + '=' + randomToken();
ajax(href);
ajax(href, cb);
};
Feedback.reportAppUsage = function () {