We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de59257 commit adbf060Copy full SHA for adbf060
public/scripts/home/controllers/home/view.html
@@ -46,14 +46,15 @@
46
<!-- START Botmaker WebChat-->
47
<script>
48
(function () {
49
- let readyExecuted = false;
50
-
51
- if (!readyExecuted) {
+ let bot = document.childNodes[1].lastChild.lastElementChild.innerHTML;
+ debugger;
+ if (bot == "") {
52
let js = document.createElement('script');
53
js.type = 'text/javascript';
54
js.async = 1;
55
js.src = 'https://go.botmaker.com/rest/webchat/p/HLENDRUDLS/init.js';
56
document.body.appendChild(js);
57
+ readyExecuted = true;
58
}
59
})();
60
</script>
0 commit comments