mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-18 02:13:08 +09:00
16 lines
359 B
JavaScript
16 lines
359 B
JavaScript
/**
|
|
* Expects a file. Returns an object containing the size, type, name and path.
|
|
*/
|
|
onmessage = function(event) {
|
|
var file = event.data;
|
|
|
|
var rtnObj = new Object();
|
|
|
|
rtnObj.size = file.size;
|
|
rtnObj.type = file.type;
|
|
rtnObj.name = file.name;
|
|
rtnObj.path = file.path;
|
|
rtnObj.lastModifiedDate = file.lastModifiedDate;
|
|
|
|
postMessage(rtnObj);
|
|
};
|