Enable feedback in pad2

This commit is contained in:
yflory
2017-08-22 18:18:58 +02:00
parent e81bb3fe08
commit c33b128bf4
4 changed files with 34 additions and 7 deletions

View File

@@ -205,6 +205,13 @@ define([
var randomToken = function () {
return Math.random().toString(16).replace(/0./, '');
};
common.isFeedbackAllowed = function () {
try {
if (!getStore().getProxy().proxy.allowUserFeedback) { return; }
return true;
} catch (e) { return void console.error(e); }
};
var feedback = common.feedback = function (action, force) {
if (force !== true) {
if (!action) { return; }