summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormayx <mayx@outlook.com>2025-06-19 13:19:19 +0200
committermayx <mayx@outlook.com>2025-06-19 13:19:19 +0200
commit4ee425d47cde58a695370093faa47e7aee96b711 (patch)
treed70387f9ba241fbf76acfb4b61cfc2e07b5bdf66
parent7ea27ffbda48f85925b43521d255da268b2feadb (diff)
Update file message.js
-rw-r--r--Live2dHistoire/live2d/js/message.js2
1 files changed, 1 insertions, 1 deletions
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) {