mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-21 05:42:26 +00:00
clean comments
This commit is contained in:
parent
e60b5ce015
commit
51f87529f6
1 changed files with 0 additions and 2 deletions
|
|
@ -25,7 +25,6 @@ export function MigrationDownloadPage() {
|
||||||
|
|
||||||
const handleDownload = useCallback(() => {
|
const handleDownload = useCallback(() => {
|
||||||
try {
|
try {
|
||||||
// Create a data object containing user's account data, bookmarks, and progress
|
|
||||||
const exportData = {
|
const exportData = {
|
||||||
account: {
|
account: {
|
||||||
profile: user.account?.profile,
|
profile: user.account?.profile,
|
||||||
|
|
@ -43,7 +42,6 @@ export function MigrationDownloadPage() {
|
||||||
// Create filename with current date
|
// Create filename with current date
|
||||||
const exportFileDefaultName = `mw-account-data-${new Date().toISOString().split("T")[0]}.json`;
|
const exportFileDefaultName = `mw-account-data-${new Date().toISOString().split("T")[0]}.json`;
|
||||||
|
|
||||||
// Create a temporary link element and click it to trigger download
|
|
||||||
const linkElement = document.createElement("a");
|
const linkElement = document.createElement("a");
|
||||||
linkElement.setAttribute("href", dataUri);
|
linkElement.setAttribute("href", dataUri);
|
||||||
linkElement.setAttribute("download", exportFileDefaultName);
|
linkElement.setAttribute("download", exportFileDefaultName);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue