gecko/dom/base/test/create_file_objects.js
2016-01-21 09:57:30 -08:00

11 lines
267 B
JavaScript

Components.utils.importGlobalProperties(['File']);
addMessageListener("create-file-objects", function(message) {
let files = []
for (fileName of message.fileNames) {
files.push(new File(fileName));
}
sendAsyncMessage("created-file-objects", files);
});