From 6f89156415a9849da826ffb185f87bd328b25e6c 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) {