Skip to content

Commit

Permalink
bug fix: document.appendChild => document.body.appendChild
Browse files Browse the repository at this point in the history
  • Loading branch information
eterna2 committed Sep 20, 2017
1 parent a1aeca5 commit 0347c90
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build/es5/polymer-vis.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<html>

<head>
<script src="polymer-vis.js" />
<script src="polymer-vis.js"></script>

</head>
<body />

</html>
</html>
2 changes: 1 addition & 1 deletion polymer-vis.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

<script src="polymer-vis.js" />
<script src="polymer-vis.js"></script>
4 changes: 2 additions & 2 deletions polymer-vis.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
ele.async = optAsync;
if (onload) ele.onload = onload;
if (onerror) ele.onerror = onerror;
document.appendChild(ele);
document.body.appendChild(ele);
return ele;
};

Expand All @@ -52,7 +52,7 @@
ele.async = optAsync;
if (onload) ele.onload = onload;
if (onerror) ele.onerror = onerror;
document.appendChild(ele);
document.body.appendChild(ele);
return ele;
};
})((window.PolymerVis = window.PolymerVis || {}));

0 comments on commit 0347c90

Please sign in to comment.