diff --git a/src/Stats.ts b/src/Stats.ts index 6faca18e75..613064f987 100644 --- a/src/Stats.ts +++ b/src/Stats.ts @@ -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;