Merge branch 'develop' into smart-list

This commit is contained in:
Rohit
2025-07-07 01:12:36 +05:30
committed by GitHub

View File

@@ -879,13 +879,13 @@ export const DOMBrowserRenderer: React.FC<RRWebDOMBrowserRendererProps> = ({
if (headTagRegex.test(rebuiltHTML)) { if (headTagRegex.test(rebuiltHTML)) {
rebuiltHTML = rebuiltHTML.replace( rebuiltHTML = rebuiltHTML.replace(
headTagRegex, "<head>",
`<head>${cssInjection}` `<head><base href="${snapshotData.baseUrl}">${minimalCSS}`
); );
} else { } else if (rebuiltHTML.includes("<html>")) {
rebuiltHTML = rebuiltHTML.replace( rebuiltHTML = rebuiltHTML.replace(
/<html[^>]*>/i, "<html>",
`<html><head>${cssInjection}</head>` `<html><head><base href="${snapshotData.baseUrl}">${minimalCSS}</head>`
); );
} }