Update webServer.js

This commit is contained in:
Luis Fernando Molina committed 2020-10-29 15:50:52 +01:00
1 parent 5d2f8caca3
commit 3155a88b77
1 file changed
+7 -2
+7 -2
View File
@@ -545,7 +545,7 @@ exports.newWebServer = function newWebServer(EVENTS_SERVER) {
let updatedFileList = []
for (let i = 0; i < fileList.length; i++) {
let name = 'Plugin \u2192 ' + fileList[i]
updatedFileList.push(name)
updatedFileList.push([project, name])
}
allWorkspaces = allWorkspaces.concat(updatedFileList)
projectsCount++
@@ -575,7 +575,12 @@ exports.newWebServer = function newWebServer(EVENTS_SERVER) {
respondWithContent(JSON.stringify(global.DEFAULT_FAIL_RESPONSE), response)
return
} else {
allWorkspaces = allWorkspaces.concat(fileList)
let updatedFileList = []
for (let i = 0; i < fileList.length; i++) {
let name = fileList[i]
updatedFileList.push(['', name])
}
allWorkspaces = allWorkspaces.concat(updatedFileList)
respondWithContent(JSON.stringify(allWorkspaces), response)
return
}