Skip to content

Commit adbf060

Browse files
committed
se cambio la solucion del duplicado del bot
1 parent de59257 commit adbf060

File tree

1 file changed

+4
-3
lines changed
  • public/scripts/home/controllers/home

1 file changed

+4
-3
lines changed

public/scripts/home/controllers/home/view.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,15 @@
4646
<!-- START Botmaker WebChat-->
4747
<script>
4848
(function () {
49-
let readyExecuted = false;
50-
51-
if (!readyExecuted) {
49+
let bot = document.childNodes[1].lastChild.lastElementChild.innerHTML;
50+
debugger;
51+
if (bot == "") {
5252
let js = document.createElement('script');
5353
js.type = 'text/javascript';
5454
js.async = 1;
5555
js.src = 'https://go.botmaker.com/rest/webchat/p/HLENDRUDLS/init.js';
5656
document.body.appendChild(js);
57+
readyExecuted = true;
5758
}
5859
})();
5960
</script>

0 commit comments

Comments
 (0)