Skip to content

Commit 2fccacd

Browse files
committed
v6.7.6
1 parent 11ba916 commit 2fccacd

File tree

9 files changed

+20
-23
lines changed

9 files changed

+20
-23
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.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gleap",
3-
"version": "6.7.5",
3+
"version": "6.7.6",
44
"main": "build/index.js",
55
"scripts": {
66
"start": "webpack serve",

published/6.7.6/appwidget.min.css

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

published/6.7.6/index.js

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

published/6.7.6/index.min.css

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

published/latest/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/AutoConfig.js

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -156,24 +156,25 @@ export default class AutoConfig {
156156
Intercom("showNewMessage");
157157
};
158158
} else if (menuItem.actionType === "REDIRECT_URL") {
159-
if (menuItem.actionOpenInNewTab) {
159+
if (instance.widgetCallback) {
160160
action = function () {
161-
if (instance.widgetCallback) {
162-
instance.widgetCallback("openExternalURL", {
163-
url: menuItem.actionBody,
164-
});
165-
} else {
166-
window.open(menuItem.actionBody, "_blank").focus();
167-
}
161+
instance.widgetCallback("openExternalURL", {
162+
url: menuItem.actionBody,
163+
});
168164
};
169165
} else {
170-
action = function () {
171-
window.location.href = menuItem.actionBody;
172-
};
166+
if (menuItem.actionOpenInNewTab) {
167+
action = function () {
168+
window.open(menuItem.actionBody, "_blank").focus();
169+
};
170+
} else {
171+
action = function () {
172+
window.location.href = menuItem.actionBody;
173+
};
174+
}
173175
}
174176
} else if (menuItem.actionType === "CUSTOM_ACTION") {
175177
action = function () {
176-
console.log(menuItem.actionBody);
177178
Gleap.triggerCustomAction(menuItem.actionBody);
178179
};
179180
} else {

src/Gleap.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,6 @@ class Gleap {
195195
sessionInstance.sdkKey = sdkKey;
196196
sessionInstance.startSession();
197197
sessionInstance.setOnSessionReady(() => {
198-
if (instance.widgetCallback) {
199-
// Directly run post init as we don't need to run the auto config on app.
200-
instance.postInit();
201-
} else {
202-
}
203198
// Run auto configuration.
204199
AutoConfig.run().then(function () {
205200
instance.postInit();

src/MarkerManager.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,7 @@ export default class MarkerManager {
461461
if (svgClone && self.dragCursor) {
462462
self.dragCursor.appendChild(svgClone);
463463
}
464-
} catch (exp) {
465-
console.log(exp);
466-
}
464+
} catch (exp) {}
467465
}
468466
}
469467
if (type === "colorpicker") {

0 commit comments

Comments
 (0)