Skip to content

Commit

Permalink
Move paper-wormhole out of head tag.
Browse files Browse the repository at this point in the history
The `paper-wormhole` div is currently insterted into the `<head>` of the index.html page,
which causes DOM parsing problems for browsers. The `div` element cannot appear in the
`<head>`, and causes Chrome to move the `<body>` tag up to enclose the first `<div>`, breaking
all subsequent `<head>` tags (favicons, etc.)

This change places the tag as the first element in the `<body>` tag, which should
be equivalent for Paper.
  • Loading branch information
blimmer committed Mar 15, 2016
1 parent d8b4a50 commit 498e524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {
app.import('vendor/propagating.js');
},
contentFor: function(type) {
if (type === 'head') {
if (type === 'body') {
return "<div id='paper-wormhole'></div>";
}
},
Expand Down

0 comments on commit 498e524

Please sign in to comment.