Warning, /firebird/firebird-ng/src/app/workers/event-loader.worker.ts is written in an unsupported language. File is not indexed.
0001 /// <reference lib="webworker" />
0002
0003 import {addWarning} from "@angular-devkit/build-angular/src/utils/webpack-diagnostics";
0004 import {loadJSONFileEvents, loadZipFileEvents} from "../utils/data-fetching.utils";
0005
0006 addEventListener('message', ({ data }) => {
0007
0008
0009
0010 if(data.endsWith('.zip')) {
0011 loadZipFileEvents(data).then(x=>postMessage(x));
0012 } else {
0013 loadJSONFileEvents(data).then(ddd=>postMessage(ddd));
0014 }
0015 });
0016
0017