Skip to content
Snippets Groups Projects
Commit 29b6a883 authored by Alexander Rose's avatar Alexander Rose
Browse files

check for Performance object capabilities

parent a2217c7f
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
import { Task } from '../task' import { Task } from '../task'
import { isProductionMode } from '../../mol-util/debug'; import { isProductionMode } from '../../mol-util/debug';
const hasPerformance = typeof performance !== 'undefined' const hasPerformance = (typeof performance !== 'undefined') && performance.mark && performance.measure
const timingEnabled = hasPerformance && !isProductionMode const timingEnabled = hasPerformance && !isProductionMode
export namespace UserTiming { export namespace UserTiming {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment