mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 22:20:55 +03:00
fixing lint bug for xhr.onload
This commit is contained in:
@@ -21,7 +21,7 @@ class FileReceiver extends EventEmitter {
|
||||
}
|
||||
};
|
||||
|
||||
xhr.onload = event => {
|
||||
xhr.onload = function(event) {
|
||||
if (xhr.status === 404) {
|
||||
reject(
|
||||
new Error('The file has expired, or has already been deleted.')
|
||||
|
||||
Reference in New Issue
Block a user