From b1ddd352a2e39cff2e3225af335b505479249703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20CG?= Date: Thu, 5 Dec 2024 16:53:51 +0100 Subject: [PATCH] feat: safe call on wysiwyg (#520) --- public/snippet-script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/snippet-script.js b/public/snippet-script.js index ae0d2eb6..ad3f0a65 100644 --- a/public/snippet-script.js +++ b/public/snippet-script.js @@ -108,7 +108,7 @@ window.initX = { } window.addEventListener('load', () => { - window.wysiwyg.setConfig({ + window.wysiwyg?.setConfig({ auth: { baseUrl: 'https://iam.empathy.co', clientId: 'wysiwyg',