Skip to content

Commit

Permalink
Fix asset manager to only load assets from
Browse files Browse the repository at this point in the history
cacheable origins
  • Loading branch information
Juice10 committed Dec 4, 2023
1 parent d1eeb7c commit d7af6fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/rrweb/src/replay/assets/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ export default class AssetManager implements RebuildAssetManagerInterface {
? getSourcesFromSrcset(originalValue)
: [originalValue];
values.forEach((value) => {
if (!this.isURLOfCacheableOrigin(value)) return;

promises.push(
this.whenReady(value).then((status) => {
if (
Expand Down

0 comments on commit d7af6fd

Please sign in to comment.