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:
@@ -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) {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ export function showLayoutMenu (button, currentLayout, views) {
|
||||
$(button).trigger('layoutchange', [id]);
|
||||
}
|
||||
}
|
||||
});
|
||||
}).catch(() => { /* no-op */ });
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user