fix diagnosticSerivce lint error
This commit is contained in:
1 parent
d618a861e3
commit
7332b15242
1 file changed
+1
-2
@@ -24,8 +24,7 @@ export class DiagnosticService implements IDiagnosticService {
|
|||||||
* Clears performance marks after each measurement to prevent memory leaks.
|
* Clears performance marks after each measurement to prevent memory leaks.
|
||||||
*/
|
*/
|
||||||
const obs = new PerformanceObserver((items) => {
|
const obs = new PerformanceObserver((items) => {
|
||||||
// Get the first entry but we don't need to store it
|
items.getEntries();
|
||||||
items.getEntries()[0];
|
|
||||||
performance.clearMarks();
|
performance.clearMarks();
|
||||||
});
|
});
|
||||||
obs.observe({ entryTypes: ["measure"] });
|
obs.observe({ entryTypes: ["measure"] });
|
||||||
|
|||||||
Reference in new issue
Block a user