You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
641 B

4 years ago
  1. /*!
  2. * IE10 viewport hack for Surface/desktop Windows 8 bug
  3. * Copyright 2014-2015 Twitter, Inc.
  4. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  5. */
  6. // See the Getting Started docs for more information:
  7. // http://getbootstrap.com/getting-started/#support-ie10-width
  8. (function () {
  9. 'use strict';
  10. if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
  11. var msViewportStyle = document.createElement('style')
  12. msViewportStyle.appendChild(
  13. document.createTextNode(
  14. '@-ms-viewport{width:auto!important}'
  15. )
  16. )
  17. document.querySelector('head').appendChild(msViewportStyle)
  18. }
  19. })();