Transparent background + fix
* Builtin Prosody, Share chat url: option to have a transparent background (for streaming integration). * Builtin Prosody, Share chat url: fixed new day hidding when no scrollbar in readonly mode.
This commit is contained in:
@ -7,6 +7,7 @@ import { computeAutoColors } from './colors'
|
||||
|
||||
interface UriOptions {
|
||||
readonly?: boolean | 'noscroll'
|
||||
transparent?: boolean
|
||||
ignoreAutoColors?: boolean
|
||||
permanent?: boolean
|
||||
}
|
||||
@ -84,6 +85,10 @@ function getIframeUri (
|
||||
iFrameUri.searchParams.set('_readonly', (typeof uriOptions.readonly === 'string') ? uriOptions.readonly : 'true')
|
||||
}
|
||||
|
||||
if (uriOptions.transparent) {
|
||||
iFrameUri.searchParams.set('_transparent', 'true')
|
||||
}
|
||||
|
||||
iframeUriStr = iFrameUri.href
|
||||
return iframeUriStr
|
||||
}
|
||||
|
Reference in New Issue
Block a user