Merge pull request #1491 from sveltejs/gh-1487

replace window with self
pull/1493/head
Rich Harris 7 years ago committed by GitHub
commit 73eadb1630
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;

Loading…
Cancel
Save