mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2025-08-28 14:52:45 +02:00
cleanup
This commit is contained in:
@@ -31,12 +31,14 @@ decode = (arr) =>
|
||||
}
|
||||
|
||||
onmessage = (e) => {
|
||||
if(e.data.libjpeg)
|
||||
{
|
||||
importScripts(e.data.libjpeg);
|
||||
}
|
||||
else
|
||||
{
|
||||
decode(e.data);
|
||||
switch (e.data.cmd) {
|
||||
case 0x0:
|
||||
importScripts(e.data.data);
|
||||
break;
|
||||
case 0x1:
|
||||
decode(e.data.data);
|
||||
break;
|
||||
default:
|
||||
console.error("Unknown command " + e.data.cmd);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user