mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
IE10 Mobile viewport bug workaround: document.querySelector('head') => document.head
Per http://caniuse.com/#feat=documenthead , document.head is supported in IE Mobile 10+, so slightly simplify the JS accordingly. [skip sauce]
This commit is contained in:
parent
364925f951
commit
ee34e924dd
2 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@
|
||||||
'@-ms-viewport{width:auto!important}'
|
'@-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}'
|
'@-ms-viewport{width:auto!important}'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
document.querySelector('head').appendChild(msViewportStyle)
|
document.head.appendChild(msViewportStyle)
|
||||||
}
|
}
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue