Fix event start check
This commit is contained in:
parent
07d74693af
commit
bcbfbd508d
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ export default class PerformanceMonitor {
|
||||||
}
|
}
|
||||||
const key = this.buildKey(name, id);
|
const key = this.buildKey(name, id);
|
||||||
|
|
||||||
if (performance.getEntriesByName(key).length > 0) {
|
if (performance.getEntriesByName(this.START_PREFIX + key).length > 0) {
|
||||||
console.warn(`Recording already started for: ${name}`);
|
console.warn(`Recording already started for: ${name}`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue