Skip to content

Commit

Permalink
Fix onerror xhr reject event
Browse files Browse the repository at this point in the history
  • Loading branch information
DanilRostov committed Dec 20, 2023
1 parent 8e06eae commit 9a7bea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/lib/core/loaders/MRIFileLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export class MRIFileLoader {

xhr.onerror = () => {
this.handleVolumeLoadFailed(`Failed to fetch file from URL: ${url}`);
reject(new Error());
reject();
};

xhr.responseType = 'blob';
Expand Down

0 comments on commit 9a7bea7

Please sign in to comment.