Skip to content

Commit 0302e1a

Browse files
Add embedded messaging initialization script
1 parent 0a1b00a commit 0302e1a

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

260/00Dxx006q2YCN8i/TEST.html

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
11
<html>
2-
<head></head>
3-
<body></body>
2+
<head><meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1"></head>
3+
<body><script type='text/javascript'>
4+
function initEmbeddedMessaging() {
5+
try {
6+
embeddedservice_bootstrap.settings.language = 'en_US'; // For example, enter 'en' or 'en-US'
7+
8+
embeddedservice_bootstrap.init(
9+
'00Dxx006q2YCN8i',
10+
'TEST',
11+
'https://orgfarm-506a1deae6.my.site-com.714e128pgy5p1y3o2vzea7ffk1e1.wc.crm.dev:6101/ESWTEST1771444201692',
12+
{
13+
scrt2URL: 'http://orgfarm-506a1deae6.my.salesforce-scrt-com.714e128pgy5p1y3o2vzea7ffk1e1.wc.crm.dev'
14+
}
15+
);
16+
} catch (err) {
17+
console.error('Error loading Embedded Messaging: ', err);
18+
}
19+
};
20+
</script>
21+
<script type='text/javascript' src='https://orgfarm-506a1deae6.my.site-com.714e128pgy5p1y3o2vzea7ffk1e1.wc.crm.dev:6101/ESWTEST1771444201692/assets/js/bootstrap.min.js' onload='initEmbeddedMessaging()'></script>
22+
</body>
423
</html>

0 commit comments

Comments
 (0)