Skip to content

Instantly share code, notes, and snippets.

@jswebschmiede
Forked from stowball/wp8-ie10-fix.js
Created February 1, 2013 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jswebschmiede/4694573 to your computer and use it in GitHub Desktop.
Save jswebschmiede/4694573 to your computer and use it in GitHub Desktop.
(function() {
if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
var msViewportStyle = document.createElement("style");
msViewportStyle.appendChild(
document.createTextNode("@-ms-viewport{width:auto!important}")
);
document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment