From 4ee425d47cde58a695370093faa47e7aee96b711 Mon Sep 17 00:00:00 2001 From: mayx Date: Thu, 19 Jun 2025 11:19:19 +0000 Subject: [PATCH] Update file message.js --- Live2dHistoire/live2d/js/message.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Live2dHistoire/live2d/js/message.js b/Live2dHistoire/live2d/js/message.js index 68a6dba..1b85aac 100644 --- a/Live2dHistoire/live2d/js/message.js +++ b/Live2dHistoire/live2d/js/message.js @@ -189,7 +189,7 @@ if (!norunFlag) { if (Array.isArray(text)) text = text[Math.floor(Math.random() * text.length + 1) - 1]; //console.log('showMessage', text); $('.message').stop(); - if (text instanceof EventSource) { + if (typeof EventSource !== 'undefined' && text instanceof EventSource) { var outputContainer = $('.message')[0]; var eventFlag = false; text.onmessage = function(event) {