Skip to content

Commit

Permalink
Update utils.js
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
mmocny authored Oct 24, 2024
1 parent 8185d1e commit 6890507
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snippets/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function injectCSS(cssString) {
function perf$(options) {
return new Observable(subscriber => {
const obs = new PerformanceObserver(list => {
list.getEntries().forEach(entry => subscriber.nechxt(entry));
list.getEntries().forEach(entry => subscriber.next(entry));
});
obs.observe(options);
})
Expand All @@ -40,4 +40,4 @@ async function forEach(stream, callback) {
for await (let event of stream) {
callback(event);
}
}
}

0 comments on commit 6890507

Please sign in to comment.