This commit is contained in:
Morgan 2024-02-15 00:54:45 +09:00
parent 5f3a55c473
commit 312cfb4ab3
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -111,8 +111,9 @@
const url = URL.createObjectURL(blob);
const link = document.createElement("a");
link.href = url;
const now = new Date();
const dateTimeStr = now.toISOString().replace(/:\d+\.\d+Z$/, '').replace(/-|:/g, '_');
link.download = `ChatGPT-web_${dateTimeStr}.json`;
link.download = `ChatGPT-web-${dateTimeStr}.json`;
document.body.appendChild(link);
link.click();
document.body.removeChild(link);