This commit is contained in:
Aevann1 2022-02-18 11:42:28 +02:00
parent 0e5c7162c5
commit 3bf2bd8f13

View file

@ -335,7 +335,11 @@ function handle_blackjack_action(cid, action) {
xhr.setRequestHeader('xhr', 'xhr'); xhr.setRequestHeader('xhr', 'xhr');
xhr.onload = function() { xhr.onload = function() {
if (xhr.status == 200) location.reload(); if (xhr.status == 200)
{
location.hash = `comment-${cid}`;
location.reload();
}
} }
xhr.send(form); xhr.send(form);
} }
@ -351,7 +355,11 @@ function handle_wordle_action(cid, guess) {
xhr.setRequestHeader('xhr', 'xhr'); xhr.setRequestHeader('xhr', 'xhr');
xhr.onload = function() { xhr.onload = function() {
if (xhr.status == 200) location.reload(); if (xhr.status == 200)
{
location.hash = `comment-${cid}`;
location.reload();
}
} }
xhr.send(form); xhr.send(form);
} }