mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-10 11:54:40 +00:00
17 lines
359 B
JavaScript
17 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);
|
|
};
|