Made changes from PR request

This commit is contained in:
Luca 2020-10-20 12:31:48 +02:00
parent ac9c46e67b
commit eed4e89318
3 changed files with 2 additions and 20753 deletions

20750
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,7 @@ const fs = require('fs')
let scraper = null
let currentSort = null
let currentVideoId = null
//fs.writeFileSync('D:/Workspace/textELEC.txt', 'hallololol')
process.on('message', (msg) => {
if (msg === 'end') {
process.exit(0)

View File

@ -137,8 +137,7 @@ export default Vue.extend({
// we need the path from the working directory to fork correctly
if (this.commentProcess === null) {
this.commentProcess = fork('./src/process/comment-module-controller.js', ['args'], {
stdio: 'pipe',
cwd: path.join(__dirname, '../../')
stdio: ['pipe', 'pipe', 'pipe', 'ipc']
})
this.commentProcess.on('message', (msg) => {
if (msg.error === null) {