Merge pull request #1491 from sveltejs/gh-1487

replace window with self
pull/7738/head
Rich Harris 7 years ago committed by GitHub
commit 0b4d7ea587

@ -6,7 +6,7 @@ const now = (typeof process !== 'undefined' && process.hrtime)
const t = process.hrtime(); const t = process.hrtime();
return t[0] * 1e3 + t[1] / 1e6; return t[0] * 1e3 + t[1] / 1e6;
} }
: () => window.performance.now(); : () => self.performance.now();
type Timing = { type Timing = {
label: string; label: string;

Loading…
Cancel
Save