Commit 2c07b8f
authored
feat(fileshare): warn user before navigating away mid-upload (#121)
Closes #116. Cryptify does not yet support upload resume (see #117), so
navigating away during encryption/upload silently discards all progress.
Attach a beforeunload listener only while encryptionState is Encrypting
so the user gets the browser's built-in leave-page confirmation; detach
as soon as the flow transitions to Done / Error / back to FileSelection.
Co-authored-by: dobby-yivi-agent[bot] <275734547+dobby-yivi-agent[bot]@users.noreply.github.com>1 parent 61bf4ae commit 2c07b8f
1 file changed
Lines changed: 16 additions & 0 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
38 | 54 | | |
39 | 55 | | |
40 | 56 | | |
| |||
0 commit comments