Skip to content

Commit 6f7160f

Browse files
committed
unobserve all targets
1 parent 67d4afe commit 6f7160f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/common/v2/mfe-vitals.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ export function trackMFEVitals (id, timings) {
156156
if (size > largestSize) {
157157
largestSize = size
158158
lcpObservedAt = now()
159-
resizeObs.unobserve(entry.target)
160159
}
160+
resizeObs.unobserve(entry.target)
161161
} catch (e) {
162162
// Element may be detached from DOM
163163
}

0 commit comments

Comments
 (0)