Skip to content

Commit 1cf7df2

Browse files
fix: win is indefined (#822)
1 parent 2581955 commit 1cf7df2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

support.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const registerHooks = () => {
6767

6868
const saveCoverageObject = (win) => {
6969
// if application code has been instrumented, the app iframe "window" has an object
70-
const applicationSourceCoverage = win.__coverage__
70+
const applicationSourceCoverage = win?.__coverage__
7171
if (!applicationSourceCoverage) {
7272
return
7373
}

0 commit comments

Comments
 (0)