pinafore/routes/_database/database.js

8 lines
146 B
JavaScript
Raw Normal View History

// workerize version
let database
if (process.browser) {
const worker = require('./databaseWorker')
database = worker()
}
export { database }