Made changes from PR request
This commit is contained in:
parent
ac9c46e67b
commit
eed4e89318
File diff suppressed because it is too large
Load Diff
|
@ -3,7 +3,7 @@ const fs = require('fs')
|
||||||
let scraper = null
|
let scraper = null
|
||||||
let currentSort = null
|
let currentSort = null
|
||||||
let currentVideoId = null
|
let currentVideoId = null
|
||||||
//fs.writeFileSync('D:/Workspace/textELEC.txt', 'hallololol')
|
|
||||||
process.on('message', (msg) => {
|
process.on('message', (msg) => {
|
||||||
if (msg === 'end') {
|
if (msg === 'end') {
|
||||||
process.exit(0)
|
process.exit(0)
|
||||||
|
|
|
@ -137,8 +137,7 @@ export default Vue.extend({
|
||||||
// we need the path from the working directory to fork correctly
|
// we need the path from the working directory to fork correctly
|
||||||
if (this.commentProcess === null) {
|
if (this.commentProcess === null) {
|
||||||
this.commentProcess = fork('./src/process/comment-module-controller.js', ['args'], {
|
this.commentProcess = fork('./src/process/comment-module-controller.js', ['args'], {
|
||||||
stdio: 'pipe',
|
stdio: ['pipe', 'pipe', 'pipe', 'ipc']
|
||||||
cwd: path.join(__dirname, '../../')
|
|
||||||
})
|
})
|
||||||
this.commentProcess.on('message', (msg) => {
|
this.commentProcess.on('message', (msg) => {
|
||||||
if (msg.error === null) {
|
if (msg.error === null) {
|
||||||
|
|
Loading…
Reference in New Issue