From 5a82f9aa936f412c9ad5df81791c9bef955a7922 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Wed, 5 May 2021 17:32:50 +0200 Subject: [PATCH] ConverseJS: show the toolbar when in fullscreen. --- conversejs/builtin.ts | 8 ++++++++ conversejs/index.html | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/conversejs/builtin.ts b/conversejs/builtin.ts index 5aa9a606..03ae6bc5 100644 --- a/conversejs/builtin.ts +++ b/conversejs/builtin.ts @@ -90,6 +90,14 @@ window.initConverse = async function initConverse ({ advancedControls }: InitConverseParams) { const isInIframe = inIframe() + + if (isInIframe) { + const body = document.querySelector('body') + if (body) { + body.classList.add('livechat-iframe') + } + } + const params: any = { assets_path: assetsPath, diff --git a/conversejs/index.html b/conversejs/index.html index 7ac7a1c5..68d024bb 100644 --- a/conversejs/index.html +++ b/conversejs/index.html @@ -9,7 +9,7 @@