Skip to content

Commit 28f32c9

Browse files
committed
v7.0.12
1 parent 23913c3 commit 28f32c9

File tree

9 files changed

+19
-13
lines changed

9 files changed

+19
-13
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.

index.d.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,7 @@ export namespace Gleap {
5353
): void;
5454
function open(): void;
5555
function hide(): void;
56-
function startFeedbackFlow(feedbackFlow: string, options?: {
57-
actionOutboundId?: string,
58-
autostartDrawing?: boolean,
59-
showBackButton?: boolean
60-
}): void;
56+
function startFeedbackFlow(feedbackFlow: string, showBackButton?: boolean): void;
6157
function on(event: string, callback: (data?: any) => void): void;
6258
}
6359
export default Gleap;

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": "7.0.11",
3+
"version": "7.0.12",
44
"main": "build/index.js",
55
"scripts": {
66
"start": "webpack serve",

published/7.0.12/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/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/Gleap.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,16 @@ class Gleap {
372372
/**
373373
* Starts the bug reporting flow.
374374
*/
375-
static startFeedbackFlow(feedbackFlow, options = {}) {
375+
static startFeedbackFlow(feedbackFlow, showBackButton) {
376+
Gleap.startFeedbackFlowWithOptions(feedbackFlow, {
377+
hideBackButton: !showBackButton,
378+
});
379+
}
380+
381+
/**
382+
* Starts the bug reporting flow.
383+
*/
384+
static startFeedbackFlowWithOptions(feedbackFlow, options = {}) {
376385
const { actionOutboundId, autostartDrawing, hideBackButton } = options;
377386
const sessionInstance = GleapSession.getInstance();
378387
if (!sessionInstance.ready) {
@@ -432,7 +441,7 @@ class Gleap {
432441
*/
433442
performAction(action) {
434443
if (action && action.outbound && action.actionType) {
435-
Gleap.startFeedbackFlow(action.actionType, {
444+
Gleap.startFeedbackFlowWithOptions(action.actionType, {
436445
actionOutboundId: action.outbound,
437446
hideBackButton: true
438447
});

src/GleapCrashDetector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default class GleapCrashDetector {
4545
}
4646
);
4747
} else {
48-
Gleap.startFeedbackFlow("crash");
48+
Gleap.startFeedbackFlowWithOptions("crash");
4949
}
5050
}
5151
});

src/GleapRageClickDetector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default class GleapRageClickDetector {
6060
"MEDIUM"
6161
);
6262
} else {
63-
Gleap.startFeedbackFlow("crash");
63+
Gleap.startFeedbackFlowWithOptions("crash");
6464
}
6565
}
6666
});

src/GleapShortcutListener.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default class GleapShortcutListener {
3636
e.ctrlKey &&
3737
(char === "i" || char === "I" || char === 73)
3838
) {
39-
Gleap.startFeedbackFlow("bugreporting", {
39+
Gleap.startFeedbackFlowWithOptions("bugreporting", {
4040
autostartDrawing: true
4141
});
4242
}

0 commit comments

Comments
 (0)