diff --git a/file/js/be.bastelstu.Chat.litcoffee b/file/js/be.bastelstu.Chat.litcoffee index 83cf9e9..34db98e 100644 --- a/file/js/be.bastelstu.Chat.litcoffee +++ b/file/js/be.bastelstu.Chat.litcoffee @@ -370,10 +370,9 @@ Fetch new messages from the server and pass them to `handleMessages`. The userli type: 'POST' success: (data) -> remainingFailures = 3 - WCF.DOMNodeInsertedHandler.enable() handleMessages data.messages handleUsers data.users - WCF.DOMNodeInsertedHandler.disable() + WCF.DOMNodeInsertedHandler.execute() error: -> console.error "Message loading failed, #{--remainingFailures} remaining" if remainingFailures <= 0