Skip to content

Commit 7f80458

Browse files
author
patched.codes[bot]
committed
Patched /tmp/tmpcf91yv4j/html.js
1 parent e24fb58 commit 7f80458

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

html.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,17 +110,14 @@ export default class Html extends PureComponent {
110110
{styleElement}
111111
</head>
112112
<body>
113-
<div id="root" dangerouslySetInnerHTML={{ __html: contentMarkup }} />
113+
<div id="root">{contentMarkup}</div>
114114
<script
115115
defer
116116
src="https://cdn.polyfill.io/v2/polyfill.min.js?features=Intl.~locale.zh-Hant-TW"
117117
/>
118-
<script
119-
dangerouslySetInnerHTML={{
120-
__html: `window.__REDUX_STATE__=${serialize(store.getState())};`,
121-
}}
122-
charSet="UTF-8"
123-
/>
118+
<script charSet="UTF-8">
119+
{`window.__REDUX_STATE__=${serialize(store.getState())};`}
120+
</script>
124121
{_.map(scripts, (script, key) => (
125122
<script src={script} key={'scripts' + key} charSet="UTF-8" />
126123
))}

0 commit comments

Comments
 (0)