Skip to content

Commit

Permalink
Merge pull request #160 from adobe/missingresource-2x
Browse files Browse the repository at this point in the history
feat(missingresource): remove feature flag (2.x)
  • Loading branch information
trieloff authored May 24, 2024
2 parents 1249385 + cfb7284 commit eaedd2e
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,11 @@ function addLoadResourceTracking() {
.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 });
});
} catch (error) {
// something went wrong
}
Expand Down

0 comments on commit eaedd2e

Please sign in to comment.