diff options
author | mayx | 2025-06-19 11:19:19 +0000 |
---|---|---|
committer | mayx | 2025-06-19 11:19:19 +0000 |
commit | 4ee425d47cde58a695370093faa47e7aee96b711 (patch) | |
tree | d70387f9ba241fbf76acfb4b61cfc2e07b5bdf66 /Live2dHistoire/live2d | |
parent | 7ea27ffbda48f85925b43521d255da268b2feadb (diff) |
Update file message.js
Diffstat (limited to 'Live2dHistoire/live2d')
-rw-r--r-- | Live2dHistoire/live2d/js/message.js | 2 |
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) { |