We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b53e75a commit 2e1e907Copy full SHA for 2e1e907
packages/api/src/time.ts
@@ -8,6 +8,9 @@ export function isPerformanceSupported () {
8
if (typeof window !== 'undefined' && window.performance) {
9
supported = true
10
perf = window.performance
11
+ } else if (typeof global !== 'undefined' && (global as any).perf_hooks?.performance) {
12
+ supported = true
13
+ perf = (global as any).perf_hooks.performance
14
} else {
15
supported = false
16
}
0 commit comments