directory listing bug fix

This commit is contained in:
Omar Hussein 2024-03-29 21:35:26 -04:00
parent 0709474faa
commit e12b108ccb
2 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ watch(route, (to, from) => {
if (from.path.endsWith("/")) { if (from.path.endsWith("/")) {
window.sessionStorage.setItem( window.sessionStorage.setItem(
"listFrozen", "listFrozen",
to.path.endsWith("/").toString() (!to.path.endsWith("/")).toString()
); );
} else if (to.path.endsWith("/")) { } else if (to.path.endsWith("/")) {
fileStore.updateRequest(null); fileStore.updateRequest(null);

View File

@ -94,7 +94,7 @@ const keyEvent = (event: KeyboardEvent) => {
return; return;
} }
if (String.fromCharCode(event.which).toLowerCase() !== "s") { if (event.key !== "s") {
return; return;
} }