Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
🐛 Fix #392
Browse files Browse the repository at this point in the history
  • Loading branch information
GitSquared committed Jan 26, 2019
1 parent 90fc1e5 commit ddd3e28
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/classes/filesystem.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,11 @@ class FilesystemDisplay {

// Automatically start indexing supposed beginning CWD
// See #365
this.readFS(window.term[window.currentTerm].cwd || window.settings.cwd);
// ...except if we're hot-reloading, in which case this can mess up the rendering
// See #392
if (window.performance.navigation.type === 0) {
this.readFS(window.term[window.currentTerm].cwd || window.settings.cwd);
}
}
}

Expand Down

0 comments on commit ddd3e28

Please sign in to comment.