ie10fix.js 375 B

1234567891011
  1. //Windows Phone 8 and Internet Explorer 10 FIX
  2. if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
  3. var msViewportStyle = document.createElement("style");
  4. msViewportStyle.appendChild(
  5. document.createTextNode(
  6. "@-ms-viewport{width:auto!important}"
  7. )
  8. );
  9. document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
  10. }