Skip to content

Commit

Permalink
Merge pull request #162 from albancrommer/fix/json-extension
Browse files Browse the repository at this point in the history
fix: use JSON file extension for exported stories
  • Loading branch information
Vali-98 authored Dec 30, 2024
2 parents e8a9f9b + 9ee3bdd commit ab5c595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/ChatMenu/ChatEditPopup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const ChatEditPopup: React.FC<ChatEditPopupProps> = ({ item, setNowLoading, nowL
}

const handleExportChat = async (menuRef: MenuRef) => {
const name = `Chatlogs-${charName}-${item.id}.txt`.replaceAll(' ', '_')
const name = `Chatlogs-${charName}-${item.id}.json`.replaceAll(' ', '_')
await saveStringToDownload(JSON.stringify(await Chats.db.query.chat(item.id)), name, 'utf8')
menuRef.current?.close()
Logger.log(`File: ${name} saved to downloads!`, true)
Expand Down

0 comments on commit ab5c595

Please sign in to comment.