diff --git a/assets/javascript/hmcts-webchat-busHandler.js b/assets/javascript/hmcts-webchat-busHandler.js index 096af1c..048e4bf 100644 --- a/assets/javascript/hmcts-webchat-busHandler.js +++ b/assets/javascript/hmcts-webchat-busHandler.js @@ -5,6 +5,15 @@ if (!String.prototype.startsWith) { }; } +if (window.NodeList && !NodeList.prototype.forEach) { + NodeList.prototype.forEach = function (callback, thisArg) { + thisArg = thisArg || window; + for (let i=0; i