Handle promise rejection exceptions from actionSheet (#6817)

* Add catches to jellyfin

* Undo format changes to actionSheet

* formatting

* Remove logging

* commented block for screenshot

* Handle another case

* weird indentation fix

* Add myself as a contributor
This commit is contained in:
Diego Echeverri
2025-05-13 23:01:18 +02:00
committed by GitHub
parent 94287fb5cd
commit 586e3060e4
4 changed files with 7 additions and 4 deletions
+1
View File
@@ -98,6 +98,7 @@
- [Jxiced](https://github.com/Jxiced)
- [Derek Huber](https://github.com/Derek4aty1)
- [StableCrimson](https://github.com/StableCrimson)
- [diegoeche](https://github.com/diegoeche)
## Emby Contributors
@@ -212,7 +212,9 @@ function initEditor(content, options, fileOptions) {
let networkSharePath = this.querySelector('#txtNetworkPath');
networkSharePath = networkSharePath ? networkSharePath.value : null;
const path = this.querySelector('#txtDirectoryPickerPath').value;
validatePath(path, options.validateWriteable, ApiClient).then(options.callback(path, networkSharePath));
validatePath(path, options.validateWriteable, ApiClient).then(
options.callback(path, networkSharePath)
).catch(() => { /* no-op */ });
}
e.preventDefault();
e.stopPropagation();
@@ -175,8 +175,9 @@ export default function (view, params) {
case 'delete':
deleteServer(server);
break;
}
});
}).catch(() => { /* no-op */ });
}
function onServersRetrieved(result) {
@@ -221,4 +222,3 @@ export default function (view, params) {
}
});
}
+1 -1
View File
@@ -34,7 +34,7 @@ export function showLayoutMenu (button, currentLayout, views) {
$(button).trigger('layoutchange', [id]);
}
}
});
}).catch(() => { /* no-op */ });
});
}