REFACTOR imageLoadingWorker and threadManager for vars into lets
[wrfxweb.git] / fdds / imageLoadingWorker.js
blob4d8ede74d9b968068b4ff6ed15664f6ec7aa39ff
1 'use strict';
3 self.addEventListener('message', async event => {
4 const imageInfo = event.data;
6 let imageURL = imageInfo.imageURL;
7 const response = await fetch(imageURL);
8 const blob = await response.blob();
9 imageInfo.blob = blob;
11 postMessage(imageInfo);
12 });