зеркало из https://github.com/mozilla/gecko-dev.git
17 строки
351 B
JavaScript
17 строки
351 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.lastModified = file.lastModified;
|
|
|
|
postMessage(rtnObj);
|
|
};
|