]>
git.ipfire.org Git - ipfire.org.git/blob - src/scss/bootstrap-4.0.0-alpha.6/docs/assets/js/ie10-viewport-bug-workaround.js
2 * IE10 viewport hack for Surface/desktop Windows 8 bug
3 * Copyright 2014-2017 The Bootstrap Authors
4 * Copyright 2014-2017 Twitter, Inc.
5 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
8 // See the Getting Started docs for more information:
9 // https://getbootstrap.com/getting-started/#support-ie10-width
14 if (navigator
.userAgent
.match(/IEMobile\/10\.0/)) {
15 var msViewportStyle
= document
.createElement('style')
16 msViewportStyle
.appendChild(
17 document
.createTextNode(
18 '@-ms-viewport{width:auto!important}'
21 document
.head
.appendChild(msViewportStyle
)