Revert "have warning support all browser versions".

Webpack conventions still cause IE8 to break.

This reverts commit a853103862.
This commit is contained in:
Danny Skubak 2018-06-29 16:17:18 -04:00
parent a853103862
commit eb28572788
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ try {
}
if (badBrowser) {
var el = document.getElementById('BadBrowserWarning');
var el = document.getElementsByClassName('BadBrowser')[0];
el.className += ' is-open';
// Dumb check for known mobile OS's. Not important to catch all, just
// displays more appropriate information.

View File

@ -37,7 +37,7 @@
</div>
</noscript>
<div id="BadBrowserWarning" class="BadBrowser" style="display: none;">
<div class="BadBrowser" style="display: none;">
<div class="BadBrowser-content">
<h2>Your Browser is Out of Date</h2>
<p class="is-desktop">