Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
newtriks committed Mar 23, 2017
1 parent 0a27bfc commit 590fa08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ function insertStyleElement(options, styleElement) {
}

function removeStyleElement(styleElement) {
if (styleElement.parentNode === null) return false; // This line
styleElement.parentNode.removeChild(styleElement);
var idx = styleElementsInsertedAtTop.indexOf(styleElement);
if(idx >= 0) {
Expand Down

0 comments on commit 590fa08

Please sign in to comment.