Files
openlayers/src/ol/worker/version.js
Marc Jansen df23c234dc Fix common misspellings
These were found with codespell.
2021-03-05 22:53:35 +01:00

16 lines
389 B
JavaScript

/**
* A worker that responds to messages by posting a message with the version identifier.
* @module ol/worker/version
*/
import {VERSION} from '../util.js';
/** @type {any} */
const worker = self;
worker.onmessage = (event) => {
console.log('version worker received message:', event.data); // eslint-disable-line
worker.postMessage(`version: ${VERSION}`);
};
export let create;