Skip to content

Commit 51244c4

Browse files
committed
v6.0.0
1 parent fdbff3a commit 51244c4

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

build/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const Gleap = window.Gleap;
22

3-
Gleap.setApiUrl("http://0.0.0.0:9000");
3+
// Gleap.setApiUrl("http://0.0.0.0:9000");
44

55
Gleap.identify("123", {
66
name: "XOXO",

published/6.0.0/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Gleap.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ class Gleap {
122122
*/
123123
static initialize(sdkKey, gleapId, gleapHash) {
124124
const instance = this.getInstance();
125+
if (instance.initialized) {
126+
console.warn("Gleap already initialized.");
127+
return;
128+
}
129+
instance.initialized = true;
125130

126131
// Set default session (i.e. from the app SDK).
127132
if (gleapId && gleapHash) {
@@ -131,12 +136,6 @@ class Gleap {
131136
} catch (exp) {}
132137
}
133138

134-
if (instance.initialized) {
135-
console.warn("Gleap already initialized.");
136-
return;
137-
}
138-
instance.initialized = true;
139-
140139
const sessionInstance = Session.getInstance();
141140
sessionInstance.sdkKey = sdkKey;
142141
sessionInstance.startSession();
@@ -170,7 +169,7 @@ class Gleap {
170169
/**
171170
* Clears the current user session
172171
*/
173-
static logout() {
172+
static clearIdentity() {
174173
Session.getInstance().clearSession();
175174
}
176175

0 commit comments

Comments
 (0)