Skip to content

Commit

Permalink
fix: oupsie
Browse files Browse the repository at this point in the history
  • Loading branch information
mbret committed Jan 3, 2025
1 parent 1abf1fe commit 6f5b7ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/enhancers/html/renderer/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ export const unloadMedias = (frameElement?: HTMLIFrameElement) => {

elementsWithAsset.forEach((element) => {
const url = element.getAttribute("src") || element.getAttribute("href")
if (url.startsWith("blob:")) {

if (url?.startsWith("blob:")) {
URL.revokeObjectURL(url)
}
})
Expand Down

0 comments on commit 6f5b7ec

Please sign in to comment.