repo.or.cz
/
wrfxweb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
REFACTOR imageLoadingWorker and threadManager for vars into lets
[wrfxweb.git]
/
fdds
/
imageLoadingWorker.js
blob
4d8ede74d9b968068b4ff6ed15664f6ec7aa39ff
1
'use strict'
;
2
3
self
.
addEventListener
(
'message'
,
async event
=> {
4
const
imageInfo
=
event
.
data
;
5
6
let
imageURL
=
imageInfo
.
imageURL
;
7
const
response
=
await
fetch
(
imageURL
);
8
const
blob
=
await response
.
blob
();
9
imageInfo
.
blob
=
blob
;
10
11
postMessage
(
imageInfo
);
12
});