diff --git a/examples/server/public/index.html b/examples/server/public/index.html index 804b804f8..c54260867 100644 --- a/examples/server/public/index.html +++ b/examples/server/public/index.html @@ -81,8 +81,8 @@ - - + + @@ -532,13 +532,12 @@ this.fetchMessages(); } }, - downloadChat(convId) { + downloadConv(convId) { const conversation = StorageUtils.getOneConversation(convId); if (!conversation) { alert('Conversation not found.'); return; - } - + } const conversationJson = JSON.stringify(conversation, null, 2); const blob = new Blob([conversationJson], { type: 'application/json' }); const url = URL.createObjectURL(blob); @@ -549,7 +548,7 @@ a.click(); document.body.removeChild(a); URL.revokeObjectURL(url); - }, + }, async sendMessage() { if (!this.inputMsg) return; const currConvId = this.viewingConvId;