Keep the browser draft on screen after Save your progress, including when the save link is dead.
This commit is contained in:
1 parent
d576ed81d9
commit
d31045b0e5
6 files changed
+141
-12
No files matched your search
@@ -84,6 +84,16 @@ export function hasTransferPendingFlag(): boolean {
|
||||
}
|
||||
}
|
||||
|
||||
/** Drop the transfer flag without touching the stored draft. */
|
||||
export function clearTransferPendingFlag(): void {
|
||||
if (typeof window === "undefined") return;
|
||||
try {
|
||||
window.localStorage.removeItem(CREATE_FLOW_TRANSFER_PENDING_KEY);
|
||||
} catch {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
||||
/** One-time cleanup of pre–anonymous-draft keys. */
|
||||
export function clearLegacyCreateFlowKeysOnce(): void {
|
||||
if (typeof window === "undefined") return;
|
||||
|
||||
Reference in new issue
Block a user