pass loaded file to callback when importing
parent
5b79775810
commit
ca45e3533d
|
@ -51,7 +51,7 @@ define([
|
|||
$files.on('change', function (e) {
|
||||
var file = e.target.files[0];
|
||||
var reader = new FileReader();
|
||||
reader.onload = function (e) { f(e.target.result); };
|
||||
reader.onload = function (e) { f(e.target.result, file); };
|
||||
reader.readAsText(file, type);
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue