Skip to content

Commit

Permalink
replace window with self - fixes #1487
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed May 24, 2018
1 parent 80077c1 commit d9999bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const now = (typeof process !== 'undefined' && process.hrtime)
const t = process.hrtime();
return t[0] * 1e3 + t[1] / 1e6;
}
: () => window.performance.now();
: () => self.performance.now();

type Timing = {
label: string;
Expand Down

0 comments on commit d9999bc

Please sign in to comment.