Skip to content

Commit f0bd502

Browse files
authored
Merge pull request react-component#59 from mingelz/master
bugfix: split script close tag for html file inline usage
2 parents 76f6ed0 + 52c72c1 commit f0bd502

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/IframeUploader.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ const IframeUploader = React.createClass({
126126
let domainScript = '';
127127
let domainInput = '';
128128
if (domain) {
129-
domainScript = `<script>document.domain="${domain}";</script>`;
129+
const script = 'script';
130+
domainScript = `<${script}>document.domain="${domain}";</${script}>`;
130131
domainInput = `<input name="_documentDomain" value="${domain}" />`;
131132
}
132133
return `

0 commit comments

Comments
 (0)