don't try to handle error thta never happens anymore
This commit is contained in:
parent
b15aa3360a
commit
4a9a564913
@ -181,9 +181,6 @@ define([
|
|||||||
};
|
};
|
||||||
Cryptpad.getFileSize(window.location.href, function (e, data) {
|
Cryptpad.getFileSize(window.location.href, function (e, data) {
|
||||||
if (e) {
|
if (e) {
|
||||||
// TODO when GET_FILE_SIZE is made unauthenticated
|
|
||||||
// you won't need to handle this error (there won't be one)
|
|
||||||
if (e === 'RPC_NOT_READY') { return todoBigFile(); }
|
|
||||||
return void Cryptpad.errorLoadingScreen(e);
|
return void Cryptpad.errorLoadingScreen(e);
|
||||||
}
|
}
|
||||||
var size = Cryptpad.bytesToMegabytes(data);
|
var size = Cryptpad.bytesToMegabytes(data);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user