mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-15 18:08:17 -07:00
remove useless null check
This commit is contained in:
parent
3efda93208
commit
294e4c220c
@ -28,7 +28,7 @@ function initPermissionRequest() {
|
||||
const apiClient = ServerConnections.currentApiClient();
|
||||
if (apiClient) {
|
||||
apiClient.getCurrentUser()
|
||||
.then(user => user && registerOneDocumentClickHandler())
|
||||
.then(user => registerOneDocumentClickHandler())
|
||||
.catch(() => {
|
||||
Events.on(ServerConnections, 'localusersignedin', registerOneDocumentClickHandler);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user