summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/fileBlob_worker.js
blob: fbb50c7c10f1e5764df5f68ead11f9beb57b235c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/**
 * 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);
};