8 lines
146 B
JavaScript
8 lines
146 B
JavaScript
|
// workerize version
|
||
|
let database
|
||
|
if (process.browser) {
|
||
|
const worker = require('./databaseWorker')
|
||
|
database = worker()
|
||
|
}
|
||
|
export { database }
|