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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user