Skip to content

Commit

Permalink
fix(terminal): allow terminal to work with multi-node passwords
Browse files Browse the repository at this point in the history
  • Loading branch information
ravenclaw900 committed Jan 12, 2022
1 parent 406f311 commit 7a47661
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file modified src/frontend/.yarn/install-state.gz
Binary file not shown.
5 changes: 3 additions & 2 deletions src/frontend/src/pages/Terminal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@
};
socket.onopen = () => {
if (localStorage.getItem("token") != null) {
socket.send(`token${localStorage.getItem("token")}`);
let obj = JSON.parse(localStorage.getItem("tokens"));
if (obj != null && obj[node] != null) {
socket.send(`token${obj[node]}`);
}
terminal.open(termDiv);
fitAddon.fit();
Expand Down

0 comments on commit 7a47661

Please sign in to comment.