mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-28 00:54:30 +01:00
Merge pull request #18095 from twbs/document.head
Trivially simplify IE10 Mobile viewport bug workaround
This commit is contained in:
commit
22e01efcbd
@ -17,7 +17,7 @@
|
||||
'@-ms-viewport{width:auto!important}'
|
||||
)
|
||||
)
|
||||
document.querySelector('head').appendChild(msViewportStyle)
|
||||
document.head.appendChild(msViewportStyle)
|
||||
}
|
||||
|
||||
})();
|
||||
|
@ -181,7 +181,7 @@ if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
|
||||
'@-ms-viewport{width:auto!important}'
|
||||
)
|
||||
)
|
||||
document.querySelector('head').appendChild(msViewportStyle)
|
||||
document.head.appendChild(msViewportStyle)
|
||||
}
|
||||
{% endhighlight %}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user