Code refactoring WIP:

Cleaning the way ConverseJS parameters are given to the full page.
This commit is contained in:
John Livingston
2023-08-01 17:01:09 +02:00
parent 6184205e36
commit d33795f7a1
7 changed files with 71 additions and 81 deletions

View File

@ -1,6 +1,6 @@
import type { InitConverseParams } from './types'
import type { InitConverseJSParams } from 'shared/lib/types'
function initDom ({ forceReadonly, transparent }: InitConverseParams, isInIframe: boolean): void {
function initDom ({ forceReadonly, transparent }: InitConverseJSParams, isInIframe: boolean): void {
const body = document.querySelector('body')
if (isInIframe) {
if (body) {