Bug 1516034 - Refactor to add non-prerendered comment in root tag (#4691)
This commit is contained in:
Родитель
85088466a8
Коммит
6afb432a35
|
@ -93,8 +93,6 @@ for (const src of ${JSON.stringify(scripts, null, 2)}) {
|
|||
script.src = src;
|
||||
}
|
||||
</script>`;
|
||||
// Comment to indicate if prerendered version of html is used. See Bug 1516034
|
||||
const isPrerenderedStatus = "<!-- Prerendered version html not shown -->";
|
||||
return `<!doctype html>
|
||||
<html lang="${options.locale}" dir="${options.direction}">
|
||||
<head>
|
||||
|
@ -106,11 +104,10 @@ for (const src of ${JSON.stringify(scripts, null, 2)}) {
|
|||
<link rel="stylesheet" href="${options.baseUrl}css/activity-stream.css" />
|
||||
</head>
|
||||
<body class="activity-stream">
|
||||
<div id="root">${isPrerendered ? html : ""}</div>
|
||||
<div id="root">${isPrerendered ? html : "<!-- Regular React Rendering -->"}</div>
|
||||
<div id="snippets-container">
|
||||
<div id="snippets"></div>
|
||||
</div>${options.noscripts ? "" : scriptTag}
|
||||
${isPrerendered ? "" : isPrerenderedStatus}
|
||||
</body>
|
||||
</html>
|
||||
`;
|
||||
|
|
Загрузка…
Ссылка в новой задаче