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

Commit

Permalink
🚨 Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GitSquared committed Feb 3, 2019
1 parent d769e30 commit 6c5650c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/_boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ app.on('ready', () => {
term.wss.close();
signale.complete(`TTY exited at ${port}`, code, signal);
extraTtys[term.port] = null;
delete term;
term = null;
};
term.onopened = () => {
signale.success(`TTY ${port} connected to frontend`);
Expand All @@ -267,7 +267,7 @@ app.on('ready', () => {
term.close();
term.wss.close();
extraTtys[term.port] = null;
delete term;
term = null;
};

extraTtys[port] = term;
Expand Down
4 changes: 2 additions & 2 deletions src/classes/filesystem.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class FilesystemDisplay {

let cmd = `window.term[window.currentTerm].write('\\'${e.name}\\'')`;
if (e.type === "dir" || e.type === "up" || e.type.endsWith("Dir")) {
cmd = `window.term[window.currentTerm].writelr('cd \\'${e.name.replace("\\", "\\\\")}\\'')`;
cmd = `window.term[window.currentTerm].writelr('cd \\'${e.name.replace(/\\/g, "\\\\")}\\'')`;
}

if (e.type === "up") {
Expand All @@ -293,7 +293,7 @@ class FilesystemDisplay {

if (e.type === "disk" || e.type === "rom" || e.type === "usb") {
let extraSwitch = (process.platform === "win32") ? " /D" : "";
cmd = `window.term[window.currentTerm].writelr('cd${extraSwitch} \\'${e.path.replace("\\", "\\\\")}\\'')`;
cmd = `window.term[window.currentTerm].writelr('cd${extraSwitch} \\'${e.path.replace(/\\/g, "\\\\")}\\'')`;

document.getElementById("fs_disp_title_dir").innerText = "Showing available block devices";
this.filesContainer.setAttribute("class", "disks");
Expand Down

0 comments on commit 6c5650c

Please sign in to comment.