Skip to content

Commit 7a3a67d

Browse files
authored
Update and rename miaw_spa_toggle_deployments.html to miaw_spa_toggle_deployment.html
1 parent 0dc9c92 commit 7a3a67d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

npachpande/async/sdb3/miaw_spa_toggle_deployments.html renamed to npachpande/async/sdb3/miaw_spa_toggle_deployment.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
<html>
22
<body>
3+
<button onclick="toggleDeployment()">Toggle Deployment</button>
34
<script type='text/javascript'>
5+
6+
function toggleDeployment() {
7+
embeddedservice_bootstrap.userVerificationAPI.clearSession(true).then(() => {
8+
embeddedservice_bootstrap.utilAPI.removeAllComponents();
9+
});
10+
};
11+
412
function initEmbeddedMessaging() {
513
try {
614
embeddedservice_bootstrap.settings.language = 'en_US'; // For example, enter 'en' or 'en-US'

0 commit comments

Comments
 (0)