once -> on

threads
yutent 2023-06-15 19:51:21 +08:00
parent 50a54a152c
commit 82c8686bfb
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ const { options, verbose, dist, imports } = workerData
options.isCustomElement = Function('return ' + options.isCustomElement)()
parentPort.once('message', job => {
parentPort.on('message', job => {
let [currentPage, { page, files }] = job.entries().next().value
console.log(