Skip to content

Commit

Permalink
Fix: Code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
srishilesh committed Apr 18, 2021
1 parent 27aeec5 commit 066a886
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions renderer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const { ipcRenderer } = require('electron');
const {
ipcRenderer
} = require('electron');
const fs = require('fs');
const watch = require('node-watch');

Expand Down Expand Up @@ -171,11 +173,15 @@ const loadInitialComponents = () => {
};

const controller = () => {
watch(yoloFolderPath, { recursive: true }, (evt, name) => {
watch(yoloFolderPath, {
recursive: true
}, (evt, name) => {
yoloFiles = fs.readdirSync(yoloFolderPath);
});

watch(modelBFolderPath, { recursive: true }, (evt, name) => {
watch(modelBFolderPath, {
recursive: true
}, (evt, name) => {
modelBFiles = fs.readdirSync(modelBFolderPath);
htmlModelBFilePaths = '';
modelBFiles.forEach(file => {
Expand All @@ -185,7 +191,9 @@ const controller = () => {
document.querySelector('.file-name').innerHTML = modelBFiles[counter];
});

watch(linearInterpolationFolderPath, { recursive: true }, (evt, name) => {
watch(linearInterpolationFolderPath, {
recursive: true
}, (evt, name) => {
linearInterpolationFiles = fs.readdirSync(linearInterpolationFolderPath);
});

Expand Down Expand Up @@ -392,4 +400,4 @@ const makeResizableDiv = (yMin, xMin, yMax, xMax) => {
window.removeEventListener('mousemove', resize);
}
}
};
};

0 comments on commit 066a886

Please sign in to comment.