Skip to content

Commit

Permalink
attempt 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Saleca committed Oct 2, 2024
1 parent 0d392a0 commit 79e6d0d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,9 @@ async function loadingAnimation(loadType, signal) {
if (currentPath[0] === '\\') { // back navigation to root
currentPath = formatBackwardsNavigationPath(previousPath);
} else if (previousPath.includes(currentPath)) { // back navigation
currentPath.replace(previousPath, '');
currentPath = formatBackwardsNavigationPath(currentPath);
const path = previousPath.replace(currentPath + '\\', '');
currentPath = formatBackwardsNavigationPath(path);
console.info(path + ' = ' + currentPath);
} else if (currentPath.includes(previousPath)) { //forward navigation
currentPath = currentPath.replace(previousPath + '\\', '');
}
Expand Down

0 comments on commit 79e6d0d

Please sign in to comment.