Use history.replaceState

This commit is contained in:
Andrew Morris
2023-04-03 10:37:06 +10:00
parent b69ac17efd
commit 7fe031f927

View File

@@ -105,7 +105,7 @@ let currentFile = '';
currentFile = newFile;
}
location.hash = currentFile;
history.replaceState(null, '', `#${currentFile}`);
fileLocationText.textContent = currentFile;
const model = fileModels[currentFile];