Skip to content

Commit 0fa80c6

Browse files
committed
Kimulacrum: Fix hash being overwritten during load
1 parent b3b58da commit 0fa80c6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

kimulacrum.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ function recreateChat()
529529

530530
clearChat();
531531

532-
document.getElementById("chatroom").onchange = function()
532+
document.getElementById("chatroom").onchange = function(event)
533533
{
534534
document.getElementById("dialogue").innerHTML = "<option>SELECT A DIALOGUE</option>";
535535
clearChat();
@@ -544,7 +544,10 @@ function recreateChat()
544544
{
545545
document.getElementById("flowchart-link").classList.add("d-none");
546546
}
547-
saveState();
547+
if (event)
548+
{
549+
saveState();
550+
}
548551
};
549552
if (document.getElementById("chatroom").value != "SELECT A CHATROOM")
550553
{

0 commit comments

Comments
 (0)