1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

Merge pull request #18095 from twbs/document.head

Trivially simplify IE10 Mobile viewport bug workaround
This commit is contained in:
Chris Rebert 2015-10-29 12:58:57 -07:00
commit 22e01efcbd
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@
'@-ms-viewport{width:auto!important}' '@-ms-viewport{width:auto!important}'
) )
) )
document.querySelector('head').appendChild(msViewportStyle) document.head.appendChild(msViewportStyle)
} }
})(); })();

View file

@ -181,7 +181,7 @@ if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
'@-ms-viewport{width:auto!important}' '@-ms-viewport{width:auto!important}'
) )
) )
document.querySelector('head').appendChild(msViewportStyle) document.head.appendChild(msViewportStyle)
} }
{% endhighlight %} {% endhighlight %}