Remove window from performance object access (#845)
This commit is contained in:
parent
a2e6de84af
commit
4293f73153
@ -31,7 +31,7 @@ class Timer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sample(name) {
|
sample(name) {
|
||||||
const time = window.performance.now();
|
const time = performance.now();
|
||||||
this.samples.push({
|
this.samples.push({
|
||||||
name,
|
name,
|
||||||
time,
|
time,
|
||||||
|
Loading…
Reference in New Issue
Block a user