Skip to content

Commit e759983

Browse files
committed
Fixed an issue where checking for jquery was throwing an error.
1 parent b286c36 commit e759983

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bootstrap/WindowBootstrapper.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ export class WindowBootstrapper implements IBootstrapper {
2929

3030
TraceKit.report.subscribe(this.processUnhandledException);
3131
TraceKit.extendToAsynchronousCallbacks();
32-
if ($ && $(document)) {
32+
33+
if (typeof $ !== 'undefined' && $(document)) {
3334
$(document).ajaxError(this.processJQueryAjaxError);
3435
}
3536
}

0 commit comments

Comments
 (0)