From fa4e51f3ba0677ed99232dd04e6a9027606b5b29 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 30 Sep 2016 10:42:15 +0200 Subject: [PATCH] Handle undefined settings being passed in. --- src/converse-core.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/converse-core.js b/src/converse-core.js index 049eee79c..bc4fc96ac 100755 --- a/src/converse-core.js +++ b/src/converse-core.js @@ -143,6 +143,7 @@ converse.initialize = function (settings, callback) { "use strict"; + settings = typeof settings !== "undefined" ? settings : {}; var init_deferred = new $.Deferred(); var converse = this; var unloadevent;