diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js index 78eed1ae98..39969f081f 100644 --- a/docs/assets/js/application.js +++ b/docs/assets/js/application.js @@ -24,7 +24,7 @@ '@-ms-viewport{width:auto!important}' ) ); - document.getElementsByTagName('head')[0]. + document.querySelector('head'). appendChild(msViewportStyle); } diff --git a/docs/getting-started.html b/docs/getting-started.html index a09b78f6aa..1085d45abf 100644 --- a/docs/getting-started.html +++ b/docs/getting-started.html @@ -852,7 +852,7 @@ if (navigator.userAgent.match(/IEMobile\/10\.0/)) { "@-ms-viewport{width:auto!important}" ) ) - document.getElementsByTagName("head")[0].appendChild(msViewportStyle) + document.querySelector("head").appendChild(msViewportStyle) } {% endhighlight %}

For more information and usage guidelines, read Windows Phone 8 and Device-Width.