1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-28 14:29:07 +02:00

make WP8 device-width hack code fully consistent between docs HTML & docs JS

This commit is contained in:
Chris Rebert
2014-01-18 18:35:47 -08:00
parent 20772462df
commit b67cba2b4d
2 changed files with 6 additions and 7 deletions

View File

@@ -18,14 +18,13 @@
//
// See Getting Started docs for more information
if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
var msViewportStyle = document.createElement('style');
var msViewportStyle = document.createElement('style')
msViewportStyle.appendChild(
document.createTextNode(
'@-ms-viewport{width:auto!important}'
)
);
document.querySelector('head').
appendChild(msViewportStyle);
)
document.querySelector('head').appendChild(msViewportStyle)
}