diff options
Diffstat (limited to 'webAO/client/saveChatLogHandle.ts')
| -rw-r--r-- | webAO/client/saveChatLogHandle.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webAO/client/saveChatLogHandle.ts b/webAO/client/saveChatLogHandle.ts index 5e6b277b..b184e09d 100644 --- a/webAO/client/saveChatLogHandle.ts +++ b/webAO/client/saveChatLogHandle.ts @@ -8,8 +8,8 @@ export const saveChatlogHandle = async () => { for (let i = 0; i < icMessageLogs.length; i++) { const SHOWNAME_POSITION = 0; const TEXT_POSITION = 2; - const showname = icMessageLogs[i].children[SHOWNAME_POSITION].innerHTML; - const text = icMessageLogs[i].children[TEXT_POSITION].innerHTML; + const showname = icMessageLogs[i].children[SHOWNAME_POSITION].textContent; + const text = icMessageLogs[i].children[TEXT_POSITION].textContent; const message = `${showname}: ${text}`; messages.push(message); } |
