A task to inline workers
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user