Skip to content

Commit 0e8ec95

Browse files
authored
Update miawBots.html
1 parent 16ceaf6 commit 0e8ec95

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Shital/SDB3/miawBots.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
<h1>MIAW Chat SDB3 E2ETest using Bot</h1>
22
miawe2e@sdb3.ia240
33
<p><a id="editThisPageLink" target="_blank" style="color:blue">Edit this page</a></p>
4-
<script type='text/javascript'>
5-
function initEmbeddedMessaging() {
4+
<script>document.getElementById('editThisPageLink').href = "https://github.com/ESW1234/esw1234.github.io/edit/master" + window.location.pathname;</script>
5+
<script type='text/javascript'>
6+
function initEmbeddedMessaging() {
67
try {
7-
embeddedservice_bootstrap.settings.language = 'en_US'; // For example, enter 'en' or 'en-US'
8-
8+
embeddedservice_bootstrap.settings.language = 'en'; // For example, enter 'en' or 'en-US'
9+
window.addEventListener("onEmbeddedMessagingReady", () => {
10+
embeddedservice_bootstrap.prechatAPI.setHiddenPrechatFields({"Browser" : "Browser Chrome 106", "OS" : "Mac OS 1.2"});});
911
embeddedservice_bootstrap.init(
1012
'00DSB0000003a8b',
1113
'e2eBotTest',
1214
'https://inapporg3.demo.test1.my.pc-rnd.site.com/ESWe2eBotTest1686185155759',
1315
{
14-
scrt2URL: 'https://inapporg3.demo.test1.my.pc-rnd.salesforce-scrt.com'
16+
scrt2URL: 'https://inapporg3.test1.my.pc-rnd.salesforce-scrt.com'
1517
}
1618
);
1719
} catch (err) {
1820
console.error('Error loading Embedded Messaging: ', err);
1921
}
2022
};
2123
</script>
22-
<script type='text/javascript' src='https://inapporg3.demo.test1.my.pc-rnd.site.com/ESWe2eBotTest1686185155759/assets/js/bootstrap.min.js' onload='initEmbeddedMessaging()'></script>
24+
<script type='text/javascript' src='https://inapporg3.test1.my.pc-rnd.site.com/ESWe2eBotTest1686185155759/assets/js/bootstrap.min.js' onload='initEmbeddedMessaging()'></script>
2325
</body>
2426
</html>

0 commit comments

Comments
 (0)