Skip to content

Commit

Permalink
Don't hashtarget new comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Jun 11, 2024
1 parent 28e5c86 commit 9d12899
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -4755,7 +4755,8 @@ handle_ui.on("hashjump.js-hash", function (hashc, focus) {
location.hash = "#" + hash;
}
if ((hasClass(e, "cmtcard") || hasClass(e, "revcard"))
&& hashjump_destination(e, e)) {
&& hashjump_destination(e, e)
&& hash !== "cnew") {
addClass(e, "hashtarget");
return true;
}
Expand Down

0 comments on commit 9d12899

Please sign in to comment.