FIX_CHATBOT_BG_IMG
This commit is contained in:
parent
53ecb84eda
commit
b58b9d420c
@ -203,12 +203,19 @@ function setupMessageObserver() {
|
||||
return;
|
||||
}
|
||||
|
||||
const whiteSVG = `data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%'>
|
||||
<rect width='100%' height='100%' fill='white'/>
|
||||
</svg>`;
|
||||
|
||||
const svg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1" preserveAspectRatio="none"><rect width="1" height="1" fill="#ffffff"/></svg>`;
|
||||
const uri = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(svg)}`;
|
||||
// ✅ Change iframe body background here
|
||||
doc.body.style.background = "url('https://venbait.in/nhance/app/dev/assets/chat-bg.jpg') no-repeat center center fixed";
|
||||
// doc.body.style.background = "covercover";
|
||||
doc.body.style.backgroundSize = "cover";
|
||||
doc.body.style.margin = "0"; // optional
|
||||
doc.body.style.background = `url("${uri}") repeat center center fixed`;
|
||||
// doc.body.style.background = "url('https://venbait.in/nhance/app/dev/assets/chat-bg.jpg')";
|
||||
// doc.body.style.background = "cover";
|
||||
doc.body.style.backgroundSize = "auto";
|
||||
doc.documentElement.style.backgroundColor = '#ffffff';
|
||||
// doc.body.style.margin = "0"; // optional
|
||||
|
||||
|
||||
// Wait for the document to be ready
|
||||
|
||||
Loading…
Reference in New Issue
Block a user