Skip to content

Commit

Permalink
v8.5.8
Browse files Browse the repository at this point in the history
  • Loading branch information
boehlerlukas committed Jan 18, 2023
1 parent 51c11f8 commit eb976bc
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gleap",
"version": "8.5.7",
"version": "8.5.8",
"main": "build/index.js",
"scripts": {
"start": "webpack serve",
Expand Down
1 change: 1 addition & 0 deletions published/8.5.8/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion published/latest/index.js

Large diffs are not rendered by default.

11 changes: 3 additions & 8 deletions src/GleapSession.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,9 @@ export default class GleapSession {
if (!session || !session.gleapId) {
return;
}

var sessionChanged = true;
if (this.session && this.session.gleapHash && this.session.gleapHash === session.gleapHash) {
sessionChanged = false;
}


// Unregister previous group.
if (this.session && this.session.gleapHash && sessionChanged) {
if (this.session && this.session.gleapHash) {
GleapEventManager.notifyEvent("unregister-pushmessage-group", `gleapuser-${this.session.gleapHash}`);
}

Expand All @@ -157,7 +152,7 @@ export default class GleapSession {
this.ready = true;

// Register new push group.
if (this.session && this.session.gleapHash && sessionChanged) {
if (this.session && this.session.gleapHash) {
GleapEventManager.notifyEvent("register-pushmessage-group", `gleapuser-${this.session.gleapHash}`);
}

Expand Down

0 comments on commit eb976bc

Please sign in to comment.