Skip to content

Commit 171678e

Browse files
committed
Reverted the previous change as sending the events synchronously could cause the browser to freeze.
1 parent fed2b80 commit 171678e

6 files changed

+8
-10
lines changed

dist/exceptionless.js

-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/exceptionless.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/exceptionless.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/exceptionless.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/exceptionless.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ defaults.submissionAdapter = new DefaultSubmissionAdapter();
101101
TraceKit.report.subscribe(processUnhandledException);
102102
TraceKit.extendToAsynchronousCallbacks();
103103

104-
window && window.addEventListener && window.addEventListener('beforeunload', function () {
105-
ExceptionlessClient.default.config.queue.process(true);
106-
});
104+
// window && window.addEventListener && window.addEventListener('beforeunload', function () {
105+
// ExceptionlessClient.default.config.queue.process(true);
106+
// });
107107

108108
// if (typeof $ !== 'undefined' && $(document)) {
109109
// $(document).ajaxError(processJQueryAjaxError);

src/submission/DefaultSubmissionAdapter.ts

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ declare var XDomainRequest: { new (); create(); };
66

77
export class DefaultSubmissionAdapter implements ISubmissionAdapter {
88
public sendRequest(request: SubmissionRequest, callback: SubmissionCallback, isAppExiting?:boolean) {
9+
// TODO: Handle sending events when app is exiting with send beacon.
910
const TIMEOUT: string = 'timeout'; // optimization for minifier.
1011
const LOADED: string = 'loaded'; // optimization for minifier.
1112
const WITH_CREDENTIALS: string = 'withCredentials'; // optimization for minifier.

0 commit comments

Comments
 (0)