summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/fileBlob_worker.js
blob: 2f7a31714d10e06102d293fad24d1047c96d85bf (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);
};