mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-02 23:11:40 +01:00
disable notifications server url with https://-
This commit is contained in:
parent
5d95fc733c
commit
2dc77b6143
@ -37,6 +37,12 @@ export class NotificationsService implements NotificationsServiceAbstraction {
|
||||
this.url = environmentService.baseUrl + '/notifications';
|
||||
}
|
||||
|
||||
// Set notifications server URL to `https://-` to effectively disable communication
|
||||
// with the notifications server from the client app
|
||||
if (this.url === 'https://-') {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.signalrConnection != null) {
|
||||
this.signalrConnection.off('ReceiveMessage');
|
||||
await this.signalrConnection.stop();
|
||||
@ -64,6 +70,9 @@ export class NotificationsService implements NotificationsServiceAbstraction {
|
||||
}
|
||||
|
||||
async updateConnection(sync = false): Promise<void> {
|
||||
if (!this.inited) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
if (await this.isAuthedAndUnlocked()) {
|
||||
await this.reconnect(sync);
|
||||
|
Loading…
Reference in New Issue
Block a user