Fix event start check

pull/21833/head
Germain Souquet 2021-05-19 09:45:37 +01:00
parent 07d74693af
commit bcbfbd508d
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ export default class PerformanceMonitor {
}
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}`);
return;
}