Skip to content

Commit

Permalink
fix(polyfill): Remove document.body.removeChild on iframe to fix Dead…
Browse files Browse the repository at this point in the history
…Object error in Firefox
  • Loading branch information
Caleb Williams committed May 13, 2019
1 parent e442516 commit 204bf3b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion adoptedStyleSheets.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
iframe.hidden = true;
document.body.appendChild(iframe);
const frameBody = iframe.contentWindow.document.body;
document.body.removeChild(iframe);

const appendContent = (location, sheet) => {
const clone = sheet[node]._sheet.cloneNode(true);
Expand Down
2 changes: 1 addition & 1 deletion adoptedStyleSheets.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 204bf3b

Please sign in to comment.