Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display that.ufkcing are you sure dialog whne trying rolcose the tab while an uplaod is still in rogress #59

Open
nbitzz opened this issue Apr 18, 2024 · 1 comment
Assignees
Labels
client-v2 Stuff to be implemented in the rewrite/remade client for 2.0 enhancement New feature or request like really fucking easy this is .like, Really fucking easy
Milestone

Comments

@nbitzz
Copy link
Contributor

nbitzz commented Apr 18, 2024

https://developer.mozilla.org/en-US/docs/Web/API/Window/beforeunload_event

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH

@nbitzz nbitzz added the enhancement New feature or request label Apr 18, 2024
@nbitzz nbitzz added this to the 2.0 milestone Apr 18, 2024
@nbitzz nbitzz self-assigned this Apr 18, 2024
@nbitzz nbitzz added the like really fucking easy this is .like, Really fucking easy label Apr 29, 2024
@nbitzz
Copy link
Contributor Author

nbitzz commented Apr 29, 2024

this should just be like

window.addEventListener("beforeunload", e => {
  if (uploads.some(({uploadStatus}) => !uploadStatus.fileId && !uploadStatus.error))
    e.preventDefault()
})

right???

@nbitzz nbitzz added the client-v2 Stuff to be implemented in the rewrite/remade client for 2.0 label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client-v2 Stuff to be implemented in the rewrite/remade client for 2.0 enhancement New feature or request like really fucking easy this is .like, Really fucking easy
Projects
None yet
Development

No branches or pull requests

1 participant