Web Worker regex test (#1354)
Co-authored-by: Liyas Thomas <liyascthomas@gmail.com>
This commit is contained in:
9
plugins/web-worker.js
Normal file
9
plugins/web-worker.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import RegexWorker from "~/assets/js/regex.worker"
|
||||
|
||||
export default (context, inject) => {
|
||||
inject("worker", {
|
||||
createRejexWorker() {
|
||||
return new RegexWorker()
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user