Merge pull request #2360 from hcengineering/bugfix/4001-notification-client

4001 Reset notification client on workbench start
This commit is contained in:
Alexander Onnikov 2022-11-07 17:59:52 +07:00 committed by GitHub
commit 508ecc6a44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -42,6 +42,10 @@ export class NotificationClientImpl implements NotificationClient {
})
}
static createClient (): void {
NotificationClientImpl._instance = new NotificationClientImpl()
}
static getClient (): NotificationClientImpl {
if (NotificationClientImpl._instance === undefined) {
NotificationClientImpl._instance = new NotificationClientImpl()

View File

@ -59,7 +59,7 @@
let contentPanel: HTMLElement
setClient(client)
NotificationClientImpl.getClient()
NotificationClientImpl.createClient()
let currentAppAlias: string | undefined
let currentSpace: Ref<Space> | undefined