mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-11 02:56:06 +00:00
14 lines
239 B
JavaScript
14 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);
|
|
};
|