Skip to content

Commit

Permalink
Merge pull request #231 from adobecom/stage
Browse files Browse the repository at this point in the history
[Release] Stage to Main
  • Loading branch information
meganthecoder committed Jul 31, 2024
2 parents ed8994c + 031d18d commit 57ce0a5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,4 +195,10 @@ export const LIBS = setLibs(window.location);
if (document.querySelector('.faas')) {
loadStyle('/styles/faas.css');
}
const observer = new PerformanceObserver((list) => {
list.getEntries().forEach((entry) => {
if (entry.responseStatus === 404) window.lana?.log(`The resource ${entry.name} returned a 404 status.`, { tags: 'errorType=error,module=resource-404' });
});
});
observer.observe({ type: 'resource', buffered: true });
}());

0 comments on commit 57ce0a5

Please sign in to comment.