Permalink
Browse files

When body does not exist, this was throwing an Illegal Argument error…

… in IE8.
  • Loading branch information...
1 parent b5035a8 commit 744a9c6bba9afa007d1e9c3141671c4d21f2cf3d @zachleat zachleat committed Nov 25, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/respond.js
View
@@ -84,7 +84,9 @@
// restore the original values
docElem.style.fontSize = originalHTMLFontSize;
- body.style.fontSize = originalBodyFontSize;
+ if( originalBodyFontSize ) {
+ body.style.fontSize = originalBodyFontSize;
+ }
//also update eminpx before returning

0 comments on commit 744a9c6

Please sign in to comment.