Skip to content

Commit b30bf89

Browse files
committed
Remove self-closing div tag, which is invalid HTML
1 parent 6add121 commit b30bf89

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

dist/server/iframe.html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ Object.defineProperty(exports, "__esModule", {
55
});
66

77
exports.default = function (headHtml) {
8-
return "\n <!DOCTYPE html>\n <html>\n <head>\n <script>\n if (window.parent !== window) {\n window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__;\n }\n </script>\n <title>React Storybook</title>\n " + headHtml + "\n </head>\n <body>\n <div id=\"root\" />\n <script src=\"static/preview.bundle.js\"></script>\n </body>\n </html>\n ";
8+
return "\n <!DOCTYPE html>\n <html>\n <head>\n <script>\n if (window.parent !== window) {\n window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__;\n }\n </script>\n <title>React Storybook</title>\n " + headHtml + "\n </head>\n <body>\n <div id=\"root\"></div>\n <script src=\"static/preview.bundle.js\"></script>\n </body>\n </html>\n ";
99
};

dist/server/index.html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
55
});
66

77
exports.default = function () {
8-
return '\n <!DOCTYPE html>\n <html>\n <head>\n <title>React Storybook</title>\n <script type="text/javascript">\n window.dataId = \'' + _uuid2.default.v4() + '\';\n </script>\n <style>\n /*\n When resizing panels, the drag event breaks if the cursor\n moves over the iframe. Add the \'dragging\' class to the body\n at drag start and remove it when the drag ends.\n */\n .dragging iframe {\n pointer-events: none;\n }\n </style>\n </head>\n <body style="margin: 0;">\n <div id="root" />\n <script src="static/admin.bundle.js"></script>\n </body>\n </html>\n ';
8+
return '\n <!DOCTYPE html>\n <html>\n <head>\n <title>React Storybook</title>\n <script type="text/javascript">\n window.dataId = \'' + _uuid2.default.v4() + '\';\n </script>\n <style>\n /*\n When resizing panels, the drag event breaks if the cursor\n moves over the iframe. Add the \'dragging\' class to the body\n at drag start and remove it when the drag ends.\n */\n .dragging iframe {\n pointer-events: none;\n }\n </style>\n </head>\n <body style="margin: 0;">\n <div id="root"></div>\n <script src="static/admin.bundle.js"></script>\n </body>\n </html>\n ';
99
};
1010

1111
var _uuid = require('uuid');

src/server/iframe.html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function (headHtml) {
1212
${headHtml}
1313
</head>
1414
<body>
15-
<div id="root" />
15+
<div id="root"></div>
1616
<script src="static/preview.bundle.js"></script>
1717
</body>
1818
</html>

src/server/index.html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default function () {
2121
</style>
2222
</head>
2323
<body style="margin: 0;">
24-
<div id="root" />
24+
<div id="root"></div>
2525
<script src="static/admin.bundle.js"></script>
2626
</body>
2727
</html>

0 commit comments

Comments
 (0)