mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 07:17:32 +09:00
13 lines
239 B
JavaScript
13 lines
239 B
JavaScript
|
|
/**
|
||
|
|
* Expects a blob. Returns an object containing the size, type.
|
||
|
|
*/
|
||
|
|
onmessage = function(event) {
|
||
|
|
var file = event.data;
|
||
|
|
|
||
|
|
var rtnObj = new Object();
|
||
|
|
|
||
|
|
rtnObj.size = file.size;
|
||
|
|
rtnObj.type = file.type;
|
||
|
|
|
||
|
|
postMessage(rtnObj);
|
||
|
|
};
|