Skip to content

Commit

Permalink
[BUG] Cannot track exception from service worker #1727 (#1732)
Browse files Browse the repository at this point in the history
  • Loading branch information
MSNev committed Dec 7, 2021
1 parent 8b9a4de commit 917ce0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/AppInsightsCommon/src/Telemetry/Exception.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function _getStackFromErrorObj(errorObj:any): IStackDetails {
details = errorObj;
} else if (_isStackDetails(errorObj[strStackDetails])) {
details = errorObj[strStackDetails];
} else if (window["opera"] && errorObj[strMessage]) {
} else if (window && window["opera"] && errorObj[strMessage]) {
// Opera
details = _getOperaStack(errorObj.message);
} else if (isString(errorObj)) {
Expand Down

0 comments on commit 917ce0c

Please sign in to comment.