Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

… in IE8.
  • Loading branch information...
commit 744a9c6bba9afa007d1e9c3141671c4d21f2cf3d 1 parent b5035a8
@zachleat zachleat authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/respond.js
View
4 src/respond.js
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.