From 5ec22aab1f64e055667721bce52329077047d649 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 18 Nov 2017 14:55:59 +0200 Subject: [PATCH 1/2] Remove the unused assets/js/ie10-viewport-bug-workaround.js. --- assets/js/ie10-viewport-bug-workaround.js | 24 ----------------------- 1 file changed, 24 deletions(-) delete mode 100644 assets/js/ie10-viewport-bug-workaround.js diff --git a/assets/js/ie10-viewport-bug-workaround.js b/assets/js/ie10-viewport-bug-workaround.js deleted file mode 100644 index b335ef943e6e..000000000000 --- a/assets/js/ie10-viewport-bug-workaround.js +++ /dev/null @@ -1,24 +0,0 @@ -/*! - * IE10 viewport hack for Surface/desktop Windows 8 bug - * Copyright 2014-2017 The Bootstrap Authors - * Copyright 2014-2017 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - */ - -// See the Getting Started docs for more information: -// https://getbootstrap.com/getting-started/#support-ie10-width - -(function () { - 'use strict' - - if (navigator.userAgent.match(/IEMobile\/10\.0/)) { - var msViewportStyle = document.createElement('style') - msViewportStyle.appendChild( - document.createTextNode( - '@-ms-viewport{width:auto!important}' - ) - ) - document.head.appendChild(msViewportStyle) - } - -}()) From a1eca4beb043f1daf5efb85bceeb763c85af433f Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 18 Nov 2017 14:56:37 +0200 Subject: [PATCH 2/2] Combine ie-emulation-modes-warning.js with docs.min.js. --- _includes/scripts.html | 3 +-- assets/js/docs.min.js | 4 ++-- assets/js/{ => src}/ie-emulation-modes-warning.js | 8 +------- package.json | 2 +- 4 files changed, 5 insertions(+), 12 deletions(-) rename assets/js/{ => src}/ie-emulation-modes-warning.js (89%) diff --git a/_includes/scripts.html b/_includes/scripts.html index c3b9715d5c7f..261ca9a17648 100644 --- a/_includes/scripts.html +++ b/_includes/scripts.html @@ -16,11 +16,10 @@ + {%- endif -%} - - {%- if page.layout == "docs" -%}