summary refs log tree commit diff
path: root/Live2dHistoire/live2d
diff options
context:
space:
mode:
authormayx2025-06-19 11:19:19 +0000
committermayx2025-06-19 11:19:19 +0000
commit4ee425d47cde58a695370093faa47e7aee96b711 (patch)
treed70387f9ba241fbf76acfb4b61cfc2e07b5bdf66 /Live2dHistoire/live2d
parent7ea27ffbda48f85925b43521d255da268b2feadb (diff)
Update file message.js
Diffstat (limited to 'Live2dHistoire/live2d')
-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) {