mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix depricated DomException code property
This commit is contained in:
parent
d3b9b347ba
commit
5cd9f49d79
1 changed files with 3 additions and 3 deletions
|
@ -80,11 +80,11 @@ const UserProfile: FunctionComponent = () => {
|
|||
|
||||
const onFileReaderError = (evt: ProgressEvent<FileReader>) => {
|
||||
loading.hide();
|
||||
switch (evt.target?.error?.code) {
|
||||
case DOMException.NOT_FOUND_ERR:
|
||||
switch (evt.target?.error?.name) {
|
||||
case 'NotFoundError':
|
||||
toast(globalize.translate('FileNotFound'));
|
||||
break;
|
||||
case DOMException.ABORT_ERR:
|
||||
case 'AbortError':
|
||||
onFileReaderAbort();
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue