Emmm Monster
4 years ago
No known key found for this signature in database
GPG Key ID: C98279C83FB50DB9
1 changed files with
1 additions and
1 deletions
-
src/component/FileSelector.vue
|
@ -63,7 +63,7 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
if (window.Worker && process.env.NODE_ENV === 'production') { |
|
|
if (window.Worker && window.location.protocol !== "file:" && process.env.NODE_ENV === 'production') { |
|
|
console.log("Using Worker Pool") |
|
|
console.log("Using Worker Pool") |
|
|
this.queue = Pool( |
|
|
this.queue = Pool( |
|
|
() => spawn(new Worker('@/utils/worker.ts')), |
|
|
() => spawn(new Worker('@/utils/worker.ts')), |
|
|