From 0bad4407a2190eccb0298ce58b60b571aab3e9b3 Mon Sep 17 00:00:00 2001 From: Lars Trieloff Date: Thu, 18 Apr 2024 11:48:48 +0200 Subject: [PATCH] feat(missingresource): remove feature flag (1.x) --- src/index.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/index.js b/src/index.js index 20af02d..7168598 100644 --- a/src/index.js +++ b/src/index.js @@ -174,14 +174,11 @@ new PerformanceObserver((list) => { .forEach((entry) => { sampleRUM('loadresource', { source: entry.name, target: Math.round(entry.duration) }); }); - if (window.origin === 'business.adobe.com') { - // feature flagged for now - list.getEntries() - .filter((entry) => entry.responseStatus === 404) - .forEach((entry) => { - sampleRUM('missingresource', { source: entry.name, target: entry.hostname }); - }); - } + list.getEntries() + .filter((entry) => entry.responseStatus === 404) + .forEach((entry) => { + sampleRUM('missingresource', { source: entry.name, target: entry.hostname }); + }); }).observe({ type: 'resource', buffered: true }); [...new URLSearchParams(window.location.search).entries()]