Skip to content

Commit

Permalink
v7.0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
boehlerlukas committed Jun 2, 2022
1 parent 23913c3 commit 28f32c9
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 13 deletions.
2 changes: 1 addition & 1 deletion build/index.js

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,7 @@ export namespace Gleap {
): void;
function open(): void;
function hide(): void;
function startFeedbackFlow(feedbackFlow: string, options?: {
actionOutboundId?: string,
autostartDrawing?: boolean,
showBackButton?: boolean
}): void;
function startFeedbackFlow(feedbackFlow: string, showBackButton?: boolean): void;
function on(event: string, callback: (data?: any) => void): void;
}
export default Gleap;
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": "7.0.11",
"version": "7.0.12",
"main": "build/index.js",
"scripts": {
"start": "webpack serve",
Expand Down
1 change: 1 addition & 0 deletions published/7.0.12/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.

13 changes: 11 additions & 2 deletions src/Gleap.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,16 @@ class Gleap {
/**
* Starts the bug reporting flow.
*/
static startFeedbackFlow(feedbackFlow, options = {}) {
static startFeedbackFlow(feedbackFlow, showBackButton) {
Gleap.startFeedbackFlowWithOptions(feedbackFlow, {
hideBackButton: !showBackButton,
});
}

/**
* Starts the bug reporting flow.
*/
static startFeedbackFlowWithOptions(feedbackFlow, options = {}) {
const { actionOutboundId, autostartDrawing, hideBackButton } = options;
const sessionInstance = GleapSession.getInstance();
if (!sessionInstance.ready) {
Expand Down Expand Up @@ -432,7 +441,7 @@ class Gleap {
*/
performAction(action) {
if (action && action.outbound && action.actionType) {
Gleap.startFeedbackFlow(action.actionType, {
Gleap.startFeedbackFlowWithOptions(action.actionType, {
actionOutboundId: action.outbound,
hideBackButton: true
});
Expand Down
2 changes: 1 addition & 1 deletion src/GleapCrashDetector.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default class GleapCrashDetector {
}
);
} else {
Gleap.startFeedbackFlow("crash");
Gleap.startFeedbackFlowWithOptions("crash");
}
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/GleapRageClickDetector.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default class GleapRageClickDetector {
"MEDIUM"
);
} else {
Gleap.startFeedbackFlow("crash");
Gleap.startFeedbackFlowWithOptions("crash");
}
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/GleapShortcutListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default class GleapShortcutListener {
e.ctrlKey &&
(char === "i" || char === "I" || char === 73)
) {
Gleap.startFeedbackFlow("bugreporting", {
Gleap.startFeedbackFlowWithOptions("bugreporting", {
autostartDrawing: true
});
}
Expand Down

0 comments on commit 28f32c9

Please sign in to comment.