mirror of
https://github.com/mickael-kerjean/filestash
synced 2026-01-04 14:52:36 +01:00
Fix wrong variable name producing an error (#365)
Co-authored-by: Quentin Bramas <bramas@unistra.fr>
This commit is contained in:
parent
74169650dc
commit
d0379e3e86
1 changed files with 2 additions and 2 deletions
|
|
@ -91,7 +91,7 @@ class FileSystem{
|
|||
location = "/login?next="+location.pathname;
|
||||
}
|
||||
this.obs.next(_err);
|
||||
return Promise.reject(err);
|
||||
return Promise.reject(_err);
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -388,7 +388,7 @@ class FileSystem{
|
|||
const reader = new FileReader();
|
||||
reader.readAsText(file);
|
||||
reader.onload = () => this.is_binary(reader.result) === false? update_cache(reader.result).then(done) : done();
|
||||
reader.onerror = (err) => err(err);
|
||||
reader.onerror = (_err) => err(_err);
|
||||
});
|
||||
|
||||
function update_cache(result){
|
||||
|
|
|
|||
Loading…
Reference in a new issue