Index: openacs-4/packages/xowiki/tcl/chat-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/chat-procs.tcl,v diff -u -r1.54.2.36 -r1.54.2.37 --- openacs-4/packages/xowiki/tcl/chat-procs.tcl 20 Mar 2024 10:24:44 -0000 1.54.2.36 +++ openacs-4/packages/xowiki/tcl/chat-procs.tcl 20 Mar 2024 11:25:49 -0000 1.54.2.37 @@ -581,13 +581,16 @@ </div> <div id='xowiki-chat-users'></div> </div> + }] + + # + # A chat may be embedded later in the page's lifecycle, e.g. when + # it is extracted from a template. This event will be triggered + # only when the chat became an actual part of the DOM. This means + # we can actually subscribe to the chat. + # + append html [subst { <script nonce="[security::csp::nonce]"> - // - // A chat may be embedded later in the page's lifecycle, - // e.g. when it is extracted from a template. This event will - // be triggered only when the chat became an actual part of - // the DOM. This means we can actually subscribe to the chat. - // window.dispatchEvent(new Event('xowikichatloaded')); </script> }]