Skip to content

Commit daf861e

Browse files
Update LocalSdb6Connect.html
1 parent cbe3cab commit daf861e

File tree

1 file changed

+17
-60
lines changed

1 file changed

+17
-60
lines changed

1ShreeRam/LocalSdb6Connect.html

Lines changed: 17 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -39,68 +39,25 @@ <h1> In APP Web Client for TestCaptcha Deployment</h1>
3939
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
4040
</head>
4141
<body>
42-
43-
<h1> In APP Web Client for TestCaptcha Deployments</h1>
44-
<p><a id="editThisPageLink" target="_blank" style="color:blue">Edit this page</a></p>
45-
46-
<!-- Hidden container for the invisible widget -->
47-
<div id="recaptcha-container" style="display:none;"></div>
48-
49-
<script src="https://www.google.com/recaptcha/api.js?onload=onRecaptchaLoad&render=explicit" async defer></script>
50-
<script>
51-
document.getElementById('editThisPageLink').href =
52-
"https://github.com/shreerammohanty/miawtest/edit/master/1ShreeRam/LocalSdb6Connect.html";
53-
54-
let recaptchaWidgetId = null;
55-
56-
function onRecaptchaLoad() {
57-
recaptchaWidgetId = grecaptcha.render('recaptcha-container', {
58-
sitekey: '6Lfy2HMrAAAAAIVf2zhrlxQ-6ht07tNdfNUrD3p9',
59-
size: 'invisible',
60-
callback: onVerify,
61-
'error-callback': onError,
62-
'expired-callback': onExpired
63-
});
64-
65-
// Execute immediately, no button required
66-
grecaptcha.execute(recaptchaWidgetId);
67-
}
68-
69-
function onVerify(token) {
70-
console.log('reCAPTCHA token:', token);
71-
// TODO: POST the token to your backend for verification
72-
// fetch('/verify', { method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify({ token }) });
73-
}
74-
75-
function onError() {
76-
console.error('reCAPTCHA error');
77-
}
78-
79-
function onExpired() {
80-
console.warn('reCAPTCHA expired, re-executing…');
81-
grecaptcha.execute(recaptchaWidgetId);
82-
}
83-
</script>
84-
42+
<script type='text/javascript'>
43+
function initEmbeddedMessaging() {
44+
try {
45+
embeddedservice_bootstrap.settings.language = 'en_US'; // For example, enter 'en' or 'en-US'
8546

86-
<script type='text/javascript'>
87-
function initEmbeddedMessaging() {
88-
try {
89-
embeddedservice_bootstrap.settings.language = 'en'; // For example, enter 'en' or 'en-US'
90-
embeddedservice_bootstrap.init(
91-
'00DSG00000FLDWH',
92-
'miaw_client',
93-
'https://ram.my.localhost.sfdcdev.site.com:6101/ESWa11754390730622',
94-
{
95-
scrt2URL: 'https://liveagent2.test1.my.pc-rnd.salesforce-scrt.com'
96-
}
97-
);
98-
} catch (err) {
99-
console.error('Error loading Embedded Messaging: ', err);
100-
}
101-
};
47+
embeddedservice_bootstrap.init(
48+
'00Dxx0000006GxP',
49+
'web1',
50+
'https://orgfarm-9f8af5a46c.my.localhost.sfdcdev.site.com:6101/ESWweb11758274232077',
51+
{
52+
scrt2URL: 'http://orgfarm-9f8af5a46c.my.localhost.sfdcdev.salesforce-scrt.com:18000'
53+
}
54+
);
55+
} catch (err) {
56+
console.error('Error loading Embedded Messaging: ', err);
57+
}
58+
};
10259
</script>
103-
<script type='text/javascript' src='https://ram.my.localhost.sfdcdev.site.com:6101/ESWa11754390730622/assets/js/bootstrap.min.js' onload='initEmbeddedMessaging()'></script>
60+
<script type='text/javascript' src='https://orgfarm-9f8af5a46c.my.localhost.sfdcdev.site.com:6101/ESWweb11758274232077/assets/js/bootstrap.min.js' onload='initEmbeddedMessaging()'></script>
10461

10562

10663
</body>

0 commit comments

Comments
 (0)