Commit a53cf55b authored by Gregory HOULLIER's avatar Gregory HOULLIER
Browse files

Replace getElementsByTag by querySelector for IE10 Mobile plateform.

parent 84c33a82
1 merge request!12104Replace getElementsByTag by querySelector for IE10 Mobile platform.
Showing with 2 additions and 2 deletions
+2 -2
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
'@-ms-viewport{width:auto!important}' '@-ms-viewport{width:auto!important}'
) )
); );
document.getElementsByTagName('head')[0]. document.querySelector('head').
appendChild(msViewportStyle); appendChild(msViewportStyle);
} }
......
...@@ -852,7 +852,7 @@ if (navigator.userAgent.match(/IEMobile\/10\.0/)) { ...@@ -852,7 +852,7 @@ if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
"@-ms-viewport{width:auto!important}" "@-ms-viewport{width:auto!important}"
) )
) )
document.getElementsByTagName("head")[0].appendChild(msViewportStyle) document.querySelector("head").appendChild(msViewportStyle)
} }
{% endhighlight %} {% endhighlight %}
<p>For more information and usage guidelines, read <a href="http://timkadlec.com/2013/01/windows-phone-8-and-device-width/">Windows Phone 8 and Device-Width</a>.</p> <p>For more information and usage guidelines, read <a href="http://timkadlec.com/2013/01/windows-phone-8-and-device-width/">Windows Phone 8 and Device-Width</a>.</p>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment