Skip to content

Commit

Permalink
fix: win is indefined (#822)
Browse files Browse the repository at this point in the history
  • Loading branch information
bertrand-sifre authored Apr 26, 2024
1 parent 2581955 commit 1cf7df2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion support.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const registerHooks = () => {

const saveCoverageObject = (win) => {
// if application code has been instrumented, the app iframe "window" has an object
const applicationSourceCoverage = win.__coverage__
const applicationSourceCoverage = win?.__coverage__
if (!applicationSourceCoverage) {
return
}
Expand Down

0 comments on commit 1cf7df2

Please sign in to comment.