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