From 42da46b97e0cb07708780c4cb986fc620582bc7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20CG?= Date: Thu, 5 Dec 2024 15:58:22 +0100 Subject: [PATCH] feat: safely call on wysiwyg --- 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',