-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add warning on tab close #102
Conversation
Also, maybe we should do something about this link to the terms in Also, a better solution later on could be that the user is allowed to view other pages during a transfer, and have a way to return to the ongoing transfer screen |
This would be nice thing. Probably we will need this when we will have dilation and multiple file transfer sending. |
Probably this is the case, where we need to force user open in new tab. |
FYI: On iOS Safari/Chrome this doesn't work.. however with Android Chrome it works. |
|
Desktop Chrome/Firefox/Safari are working |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check Copy link. Also Terms link make _blank to open in new tab.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems ok
Ref: #80
When the user tries to navigate away during a transfer, they will be prompted with a warning that the transfer will cancel. Note that newer browser versions will not show the custom error message but instead a generic warning. See this for more information: https://developer.mozilla.org/en-US/docs/Web/API/Window/beforeunload_event#compatibility_notes
Closing the tab or clicking a link will trigger the warning on the following screens: