Fix whitespace and unused variable
Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
This commit is contained in:
parent
294e4c220c
commit
a78fd22158
1 changed files with 2 additions and 1 deletions
|
@ -17,6 +17,7 @@ function onOneDocumentClick() {
|
|||
Notification.requestPermission();
|
||||
}
|
||||
}
|
||||
|
||||
function registerOneDocumentClickHandler() {
|
||||
Events.off(ServerConnections, 'localusersignedin', registerOneDocumentClickHandler);
|
||||
|
||||
|
@ -28,7 +29,7 @@ function initPermissionRequest() {
|
|||
const apiClient = ServerConnections.currentApiClient();
|
||||
if (apiClient) {
|
||||
apiClient.getCurrentUser()
|
||||
.then(user => registerOneDocumentClickHandler())
|
||||
.then(() => registerOneDocumentClickHandler())
|
||||
.catch(() => {
|
||||
Events.on(ServerConnections, 'localusersignedin', registerOneDocumentClickHandler);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue