From 77c0cf7359d4b33f53010001b5b5c399953613f4 Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 11 Jan 2019 16:58:39 +0100 Subject: [PATCH] guard against calling an undefined function --- www/common/common-feedback.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/common/common-feedback.js b/www/common/common-feedback.js index f0b7d989b..d377bae5c 100644 --- a/www/common/common-feedback.js +++ b/www/common/common-feedback.js @@ -22,6 +22,7 @@ define([ http.send(); }; Feedback.send = function (action, force, cb) { + if (typeof(cb) !== 'function') { cb = function () {}; } if (AppConfig.disableFeedback) { return void cb(); } if (!action) { return void cb(); } if (force !== true) {