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

6 lines
123 B
TypeScript
Raw Normal View History

2024-02-12 16:52:45 -08:00
import { documents } from '../data'
onmessage = (e) => {
typeof e.data === 'string' && postMessage(documents[e.data])
2024-02-12 16:52:45 -08:00
}