From afb27bacc6f8364f6fb340a90db3d69e8c57402c Mon Sep 17 00:00:00 2001 From: John Livingston Date: Tue, 18 May 2021 18:48:19 +0200 Subject: [PATCH] Adding a try/catch for debugging purpose. --- conversejs/builtin.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/conversejs/builtin.ts b/conversejs/builtin.ts index c2da19c1..d25330e3 100644 --- a/conversejs/builtin.ts +++ b/conversejs/builtin.ts @@ -180,5 +180,9 @@ window.initConverse = async function initConverse ({ params.modtools_disable_assign = true } - window.converse.initialize(params) + try { + window.converse.initialize(params) + } catch (error) { + console.error('Failed initializing converseJS', error) + } }