diff options
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/js/application.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/assets/js/application.js b/assets/js/application.js index 81b644b97..76c24e5a6 100644 --- a/assets/js/application.js +++ b/assets/js/application.js @@ -6,6 +6,21 @@ $(function(){ + // IE10 viewport hack for Surface/desktop Windows 8 bug + // + // See Getting Started docs for more information + if (navigator.userAgent.match(/IEMobile\/10\.0/)) { + var msViewportStyle = document.createElement("style"); + msViewportStyle.appendChild( + document.createTextNode( + "@-ms-viewport{width:auto!important}" + ) + ); + document.getElementsByTagName("head")[0]. + appendChild(msViewportStyle); + } + + var $window = $(window) var $body = $(document.body) |
