Skip to content

Commit

Permalink
Merge pull request #1491 from sveltejs/gh-1487
Browse files Browse the repository at this point in the history
replace window with self
  • Loading branch information
Rich-Harris authored May 24, 2018
2 parents 012289a + d9999bc commit 73eadb1
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 73eadb1

Please sign in to comment.