Skip to content

Commit bcacfb3

Browse files
committed
v3.4.9
1 parent 4045437 commit bcacfb3

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
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": "bugbattle",
3-
"version": "3.4.8",
3+
"version": "3.4.9",
44
"main": "build/index.js",
55
"types": "index.d.ts",
66
"scripts": {

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/BugBattle.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ class BugBattle {
254254
* Starts the feedback type selection flow.
255255
*/
256256
static startFeedbackTypeSelection() {
257+
this.instance.stopBugReportingAnalytics();
257258
this.instance.createFeedbackTypeDialog();
258259
}
259260

@@ -344,6 +345,13 @@ class BugBattle {
344345
self.hookDialogCloseButton();
345346
}
346347

348+
stopBugReportingAnalytics() {
349+
this.networkIntercepter.setStopped(true);
350+
if (this.replay && !this.replay.stopped) {
351+
this.replay.stop(true);
352+
}
353+
}
354+
347355
/**
348356
* Starts the bug reporting flow.
349357
*/
@@ -355,10 +363,7 @@ class BugBattle {
355363
this.instance.currentlySendingBug = true;
356364
this.instance.silentBugReport = silentBugReport;
357365

358-
this.instance.networkIntercepter.setStopped(true);
359-
if (this.instance.replay) {
360-
this.instance.replay.stop(true);
361-
}
366+
this.instance.stopBugReportingAnalytics();
362367

363368
if (!this.instance.silentBugReport) {
364369
this.instance.disableScroll();

src/ReplayRecorder.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { isBlacklisted } from "./ResourceExclusionList";
1414

1515
export default class ReplayRecorder {
1616
constructor() {
17+
this.stopped = false;
1718
this.startDate = Date.now();
1819
this.node = document.documentElement;
1920
this.nextID = 1;
@@ -239,6 +240,7 @@ export default class ReplayRecorder {
239240
}
240241

241242
stop(fetchResources = false) {
243+
this.stopped = true;
242244
if (!this.rootFrame) {
243245
this.clearFakeFocus();
244246
this.rootFrame = null;

0 commit comments

Comments
 (0)