]> git.ipfire.org Git - ipfire.org.git/blob - src/scss/bootstrap-4.0.0-alpha.6/docs/assets/js/ie10-viewport-bug-workaround.js
.gitignore: Add .vscode
[ipfire.org.git] / src / scss / bootstrap-4.0.0-alpha.6 / docs / assets / js / ie10-viewport-bug-workaround.js
1 /*!
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)
6 */
7
8 // See the Getting Started docs for more information:
9 // https://getbootstrap.com/getting-started/#support-ie10-width
10
11 (function () {
12 'use strict'
13
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}'
19 )
20 )
21 document.head.appendChild(msViewportStyle)
22 }
23
24 }())