Fix event start check

This commit is contained in:
Germain Souquet 2021-05-19 09:45:37 +01:00
parent 07d74693af
commit bcbfbd508d

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;
}