4001 Reset notification client on workbench start

Signed-off-by: Alexander Onnikov <alexander.onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2022-11-07 16:45:06 +07:00
parent 9638843e4d
commit 2fef1c7420
No known key found for this signature in database
GPG Key ID: 3320C3B3324E934C
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