A task to inline workers

This commit is contained in:
Tim Schaub
2019-05-15 14:55:16 -06:00
parent 61d753c803
commit e307410301
3 changed files with 116 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
/**
* @module ol/worker/version
* A worker that responds to messages by posting a message with the version identifer.
*/
import {VERSION} from '../util';
onmessage = event => {
console.log('version worker received message:', event.data); // eslint-disable-line
// @ts-ignore
postMessage(`version: ${VERSION}`);
};
export let create;