ConverseJS: show the toolbar when in fullscreen.
This commit is contained in:
parent
e5d5da4d07
commit
5a82f9aa93
@ -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,
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
<script type="text/javaScript" src="{{BASE_STATIC_URL}}/conversejs/converse.min.js"></script>
|
||||
<script type="text/javascript" src="{{BASE_STATIC_URL}}/static/builtin.js"></script>
|
||||
<style type="text/css">
|
||||
#conversejs .chat-head {
|
||||
body.livechat-iframe #conversejs .chat-head {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
x
Reference in New Issue
Block a user