Skip to content

Commit d9999bc

Browse files
committed
replace window with self - fixes #1487
1 parent 80077c1 commit d9999bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Stats.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const now = (typeof process !== 'undefined' && process.hrtime)
66
const t = process.hrtime();
77
return t[0] * 1e3 + t[1] / 1e6;
88
}
9-
: () => window.performance.now();
9+
: () => self.performance.now();
1010

1111
type Timing = {
1212
label: string;

0 commit comments

Comments
 (0)