'@-ms-viewport{width:auto!important}'
)
);
- document.getElementsByTagName('head')[0].
+ document.querySelector('head').
appendChild(msViewportStyle);
}
"@-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>