mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
pass loaded file to callback when importing
This commit is contained in:
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
Block a user