Feature: confirm on exit while uploading by florinm03 · Pull Request #693 · sigoden/dufs (original) (raw)
Hey, we have noticed, that there is no confirmation when closing the tab and an upload is not finished. This can result in an unnecessary cancel of the upload. Can be quite frustrating when you are at 90% out of 6GB. :)
Solution
Added the event listener for it.
Tested on:
- Edge
- Chrome
- Safari
- Brave(MacOS)
- Brave on windows does not show it at all. But this is rather their implementation not reacting to the event. I'll open an issue there to see what's up, but in the end the implementation should not differ.
- Maybe you have firefox to test it on.
@sigoden Lmk what you think. Hope this gets merged, because we would really need it. :)
Here an example of the displayed box. Tried adding a custom message, but browsers seem to ignore it for security reasons.