replace window with self - fixes #1487

pull/1491/head
Rich Harris 7 years ago
parent 80077c13c3
commit d9999bc536

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