-
Notifications
You must be signed in to change notification settings - Fork 0
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
Comment reload causes alert box in Firefox and Safari #142
Comments
The alert in firefox contains the base url for the site. The alert in safari is blank except for an OK button. |
Funky. I don't know why this is happening. I suppose one possibility is there's a beforeunload event handler somewhere else on the page. You could test that hypothesis by adding something like this before your reload:
That should overwrite any existing handler for that event. |
I tried
and
Neither made a difference. |
I may have a fix. This seems to work in Brave/Firefox/Safari:
|
Cool! I thought we tried something like that before, but I guess not. That's definitely a better solution all around, because we are no longer guessing how long it takes to load. |
Back in Oct 15 (see PR #133), we added some JS to reload comments after submitting a new comment in docs. Here's the script:
It all worked great in Brave/Chrome but now I'm discovering that our script causes an alert to briefly appear in Firefox. In Safari, the alert appears and needs to be dismissed by the user.
@iangilman, how can we fix this?
The text was updated successfully, but these errors were encountered: