Skip to content

Commit

Permalink
Remove self-closing div tag, which is invalid HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
wyattdanger committed Apr 26, 2016
1 parent 4049b01 commit 658865a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/server/iframe.html.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ Object.defineProperty(exports, "__esModule", {
});

exports.default = function (headHtml) {
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 ";
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 ";
};
2 changes: 1 addition & 1 deletion dist/server/index.html.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
});

exports.default = function () {
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 \n /* Styling the fuzzy search box placeholders */\n .searchBox::-webkit-input-placeholder { /* Chrome/Opera/Safari */\n color: #ddd;\n font-size: 16px;\n }\n \n .searchBox::-moz-placeholder { /* Firefox 19+ */\n color: #ddd;\n font-size: 16px;\n }\n \n .searchBox:focus{\n border-color: #EEE !important;\n }\n \n .btn:hover{\n background-color: #eee\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 ';
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 \n /* Styling the fuzzy search box placeholders */\n .searchBox::-webkit-input-placeholder { /* Chrome/Opera/Safari */\n color: #ddd;\n font-size: 16px;\n }\n \n .searchBox::-moz-placeholder { /* Firefox 19+ */\n color: #ddd;\n font-size: 16px;\n }\n \n .searchBox:focus{\n border-color: #EEE !important;\n }\n \n .btn:hover{\n background-color: #eee\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 ';
};

var _uuid = require('uuid');
Expand Down
2 changes: 1 addition & 1 deletion src/server/iframe.html.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function (headHtml) {
${headHtml}
</head>
<body>
<div id="root" />
<div id="root"></div>
<script src="static/preview.bundle.js"></script>
</body>
</html>
Expand Down
2 changes: 1 addition & 1 deletion src/server/index.html.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function () {
</style>
</head>
<body style="margin: 0;">
<div id="root" />
<div id="root"></div>
<script src="static/admin.bundle.js"></script>
</body>
</html>
Expand Down

0 comments on commit 658865a

Please sign in to comment.