From d9999bc5365453b2c946a0a7006f9f054aa6765b Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Thu, 24 May 2018 17:26:52 -0400 Subject: [PATCH] replace window with self - fixes #1487 --- src/Stats.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;