diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js index 78eed1ae980b86c129a378da2d2ab0ba08572bae..39969f081fff82d0962f5abf13cb2d274bc61083 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 a09b78f6aad3e6d91d608cd566e7ee5f8cbd7379..1085d45abf7a1fc0126b2ebe039a1c0171145e5f 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 %} <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>