eexiv/src/app/db/workers/documentLoader.worker.ts

8 lines
123 B
TypeScript
Raw Normal View History

2024-02-12 16:52:45 -08:00
import { documents } from '../data'
onmessage = (e) => {
if (e.data === 'LOAD') {
2024-02-12 18:25:19 -08:00
self.postMessage(documents)
2024-02-12 16:52:45 -08:00
}
}