Merge branch 'develop' into smart-list
This commit is contained in:
@@ -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>`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user