Skip to content

Comment reload causes alert box in Firefox and Safari #142

@rgilman

Description

@rgilman

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:

	jQuery('#submit').click(function(){
		setTimeout(function(){
			document.location.reload();
		}, 250);
	});

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions