Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marius-wieschollek/passwords-webextension.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius David Wieschollek <passwords.public@mdns.eu>2021-01-13 23:30:48 +0300
committerMarius David Wieschollek <passwords.public@mdns.eu>2021-01-13 23:30:48 +0300
commit712c2e1b4232f98a3cb8e70d35684bcb57df7711 (patch)
treeeb8170a5071bd4ae65edf209d70779d142ec03d9 /src/js/Services
parentbf350b80f51f524fb6aa3ff60145373772db1d07 (diff)
Add client disconnect check for popup
Signed-off-by: Marius David Wieschollek <passwords.public@mdns.eu>
Diffstat (limited to 'src/js/Services')
-rw-r--r--src/js/Services/MessageService.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/js/Services/MessageService.js b/src/js/Services/MessageService.js
index c6f9952..ae3a7fc 100644
--- a/src/js/Services/MessageService.js
+++ b/src/js/Services/MessageService.js
@@ -24,6 +24,12 @@ class MessageService {
this._clients[client.name] = true;
this._sendMessages()
.catch(ErrorManager.catchEvt);
+
+ if(client.name === SystemService.AREA_POPUP) {
+ client.onDisconnect.addListener(() => {
+ this._clients[client.name] = false;
+ })
+ }
};
}